webrtc / samples

WebRTC Web demos and samples
https://webrtc.github.io/samples
BSD 3-Clause "New" or "Revised" License
13.94k stars 5.71k forks source link

How to activate front and back camera in android and ios using Webrtc #1559

Closed mahadevan-muthirakumaran closed 2 years ago

mahadevan-muthirakumaran commented 2 years ago

Hi , I am new for webrtc world. Myself created one new video call application using webrtc. By changing the camera front and back (FLIP option).

MediaConfig mediaConfig = new MediaConfig(); ICall mCall=UnityCallFactory.Instance.Create(NetConfig); mCall.CallEvent += Call_CallEvent; mMediaConfig.VideoDeviceName = "1"; mMediaConfig.Video = true; mCall.Configure(mMediaConfig);

Above code is initiated for a call. After start the call(streaming) I am trying to change the device number -'mMediaConfig.VideoDeviceName = "0";' but its not reflected on current streaming. Please could you suggest me a correct way.

Thank you..

fippo commented 2 years ago

You'll have to find another place for support wrt Unity, as pointed out in the template that you deleted, issues in this repository should be about the JS/web samples it contains