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

Switch Camera During Call #380

Closed
RikdeVos opened this issue May 27, 2017 · 6 comments
Closed

Switch Camera During Call #380

RikdeVos opened this issue May 27, 2017 · 6 comments

Comments

@RikdeVos
Copy link

RikdeVos commented May 27, 2017

I want to switch camera stream while in a call, without closing the connection to the other peer. Is this possible?

Currently doing something like this:

navigator.webkitGetUserMedia({video: true, audio: true}, (stream) => {
  peer.call(key, stream);
});
@soulpcbr
Copy link

It is not possible.

@Mrsevic
Copy link

Mrsevic commented Aug 1, 2017

It is possible. Take a look at skyway examples or this example:
https://github.com/muaz-khan/WebRTC-Experiment/blob/master/demos/switch-streams.html

@FelipeMiranda
Copy link

Really??? that's not possible?

@manhpham
Copy link

manhpham commented Feb 25, 2019

Hi, any one can switch camera during call? Can you help me?

@kidandcat
Copy link
Member

You need to establish a new connection, this is because of how WebRTC works.

@afrokick
Copy link
Member

You can use replaceTrack of RTCRtpSender.

this.call.peerConnection.getSenders()[0].replaceTrack()

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

7 participants