Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to place Group call [audio] #4020

Open
Janu-52 opened this issue Jan 22, 2024 · 0 comments
Open

Unable to place Group call [audio] #4020

Janu-52 opened this issue Jan 22, 2024 · 0 comments

Comments

@Janu-52
Copy link

Janu-52 commented Jan 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant