- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jianjun,
Good morning and thanks for your reply.
Thanks,
Nikhil

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page