Description
Hi , I'm currently exploring the use of matrix-js-sdk for implementing group audio calls. While the library is powerful, I'm finding some gaps in the documentation for this specific feature. Particularly, I haven't encountered detailed information on group call events and their corresponding state transitions.Is it possible to achieve full-fledged group audio call functionality solely with matrix-js-sdk, or are there additional considerations or dependencies involved? Can I implement the group audio in my react application by only using the matrix-js-sdk package ? if so, kindly let me know. Thanks.
"const createGroupCall = useCallback(() => {
let placeCallFunc = (x: any) => {
if (x === null) return false;
console.log('value of x', x);
x.updateParticipants();
x.initLocalCallFeed();
x.placeOutgoingCalls();
return true;
};
if (client) {
let c = client.getGroupCallForRoom(currentRoom);
placeCallFunc(c) ||
client
.createGroupCall(
currentRoom,
sdk.GroupCallType.Voice,
false,
sdk.GroupCallIntent.Ring,
true,
{
maxPacketLifeTime: 300,
maxRetransmits: 10,
ordered: true,
protocol: 'udp',
},
)
.then((c) => {
placeCallFunc(c);
console.log('test grpc', c);
playRinging();
setGroupCallState(c.state);
console.log(c.state);
});
}
}, [client]); "
This is the glimpse of the code I'm using for the implementation and I'm unable to move forward with this due to lack of documentation and any events relevant for this.