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

GroupCall/Conference example #3889

Open
ruocogito opened this issue Nov 15, 2023 · 2 comments
Open

GroupCall/Conference example #3889

ruocogito opened this issue Nov 15, 2023 · 2 comments

Comments

@ruocogito
Copy link

ruocogito commented Nov 15, 2023

Hello, i'm now implementing matrix support in my app by this matrix-js-sdk.
Chat & 1v1 video calls works fine.

But i can't found any GroupCall/Conference example.

This not work:


 let placeCallFunc = x => {
                    if(x === null) return false;

                    x.updateParticipants()
                    x.initLocalCallFeed();
                    x.placeOutgoingCalls();
                    return true
                }

                let c = this.matrixClient.getGroupCallForRoom(roomId)
                placeCallFunc(c) || this.matrixClient.createGroupCall(
                    roomId,
                    devices["videoinput"] ? "m.video" : "m.voice",
                    false,
                    "m.room",
                    true,
                    {
                    maxPacketLifeTime: null,
                    maxRetransmits: null,
                    ordered: true,
                    protocol: "udp" 
                }).
                 then(
                     c => {
                         placeCallFunc(c)

Can your place correct order for using methods for create group video cals?
Or any working example.

...
I research code of element, they use jitsi for conference call, i want make it by pure matrix-js-sdk.
This try not work too:

if(groupCall === null && roomId) {
           client.createGroupCall(
               roomId,
               "m.video",
               false,
               "m.prompt");

           groupCall = client.getGroupCallForRoom(roomId)
           await sleep(10);
       }
        if(groupCall === null) return
        //groupCall.addListener("feeds_changed", onFeedsChanged);
        groupCall.enter();
        addListeners(groupCall);

Test part of matrix-js-sdk use simple create group call and enter, and commented that sleep 10 ms to "wait for calls" but i have not any call.

@raguct25
Copy link

raguct25 commented Jan 22, 2024

Hello, i'm now implementing matrix support in my app by this matrix-js-sdk. Chat & 1v1 video calls works fine.

But i can't found any GroupCall/Conference example.

This not work:


 let placeCallFunc = x => {
                    if(x === null) return false;

                    x.updateParticipants()
                    x.initLocalCallFeed();
                    x.placeOutgoingCalls();
                    return true
                }

                let c = this.matrixClient.getGroupCallForRoom(roomId)
                placeCallFunc(c) || this.matrixClient.createGroupCall(
                    roomId,
                    devices["videoinput"] ? "m.video" : "m.voice",
                    false,
                    "m.room",
                    true,
                    {
                    maxPacketLifeTime: null,
                    maxRetransmits: null,
                    ordered: true,
                    protocol: "udp" 
                }).
                 then(
                     c => {
                         placeCallFunc(c)

Can your place correct order for using methods for create group video cals? Or any working example.

... I research code of element, they use jitsi for conference call, i want make it by pure matrix-js-sdk. This try not work too:

if(groupCall === null && roomId) {
           client.createGroupCall(
               roomId,
               "m.video",
               false,
               "m.prompt");

           groupCall = client.getGroupCallForRoom(roomId)
           await sleep(10);
       }
        if(groupCall === null) return
        //groupCall.addListener("feeds_changed", onFeedsChanged);
        groupCall.enter();
        addListeners(groupCall);

Test part of matrix-js-sdk use simple create group call and enter, and commented that sleep 10 ms to "wait for calls" but i have not any call.

Hi @ruocogito you have said 1v1 video calls works fine for you. In my side , Audio call is working fine but the video call not working .I little stuck in video call one to one communication part. can you explain how to stream video and render in view part..

@ruocogito
Copy link
Author

ruocogito commented Jan 24, 2024

can you explain how to stream video and render in view part

Standard git example for 1v1 videocalls works fine, link. It is easy to modiffy it for own ui. I'm using own synapse matrix server with coturn.
But no working examples for group call

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

No branches or pull requests

3 participants