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

call options not working #679

Open
skozgursk opened this issue May 30, 2020 · 1 comment
Open

call options not working #679

skozgursk opened this issue May 30, 2020 · 1 comment
Labels
client related to peerjs client

Comments

@skozgursk
Copy link

I am trying to make peer connection between audio and video streaming users and trying to do it like this.

let op = {
            'constraints': {
                'mandatory': {
                    'OfferToReceiveAudio': true,
                    'OfferToReceiveVideo': true
                }
            }
        };

let call = peer.call(payload, context.getters.stream, op);

call.on('stream', function(remoteStream) {
           //v is my video dom
            v.srcObject = remoteStream;
            v.play();
        });

but it seems like not working.

I am using default heroku server if it is important.

Should I do something more.

@charmi2011
Copy link

Same here,

For solving the issue :
If I tried to call some peer with the only audio stream, I cannot receive the video from that peer.

I tried setting options while calling peer

'OfferToReceiveAudio': true,
'OfferToReceiveVideo': true

But options doesn't seem to work.
Is there any other way to fix this?

@irgalamarr irgalamarr added the client related to peerjs client label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client related to peerjs client
Projects
None yet
Development

No branches or pull requests

3 participants