Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Camera switch in web

Hello Team,

We have issue with camera switch for web.

We are using intel v4.1.1 framework, we have more than one camera and mic inputs while ongoing call how we can switch cameras. 

By WebRTC framework, we can manage through SDP and create offer onfly, how we can achieve this functionality using intel framework.

 In Android SDK contains switch camera function, coming to web we cannot find any alternative.

 

Thanks ,

Nikhil.

Tags (2)
0 Kudos
6 Replies
Highlighted
Employee

For webCameras, they have

For webCameras, they have different devices ID and  there is no API to switch them in JS SDK. You can only specify device ID when calling MediaStreamFactory.createMediaStream method.

0 Kudos
Highlighted

Hi Zhenqi,

Hi Zhenqi,

We tried this but when we create media stream using new device id we got the stream, but it can not reflecting on the remote participant side , how we can achieve this without republishing.

Thanks,

Nikhil  

0 Kudos
Highlighted

As zhenqi mentioned, in js

As zhenqi mentioned, in js web sdk, you cannot dynamically switch camera without republishing. We provides the API to list devices and choose one device in create media stream, and if you publish the stream then the stream content is fixed.

0 Kudos
Highlighted

Hello Qiujiao,

Hello Qiujiao,

Good morning and thanks for your reply. If we understand correctly, we no need to republish the stream in Android platform (We haven't noticed like this in Android). But, we must republish the stream in Web and iOS platforms. We just want to confirm whether we are going in right direction or not. Please confirm.

Thank you.

Best Regards,
Nikhil.

0 Kudos
Highlighted

Hi,

Hi,

https://w3c.github.io/webrtc-pc/#dom-rtcrtpsender-replacetrack is likely to be the one you need on web platform. But it is not exposed in ICS SDK. You may need to modify the source code. On iOS platform, ICSLocalStream can be constructed with an RTCMediaStream. Please create a RTCMediaStream with a RTCVideoCapturer controlled by you. Then you will be able to control the RTCVideoCapturer object includes switching  camera.

0 Kudos
Highlighted

Hello Jianjun,

Hello Jianjun,

Good morning and thanks for your reply.

Thanks, 

Nikhil

0 Kudos