Switch camera causes the loss of the user's personal streaming video and sees the player

Hello to all,
I’m trying to add the functionality of the Switch camera. But as soon as the user clicks on the button to make the switch he loses his streaming video and sees the player icons. has anyone already faced this problem?

Hello @giolez

What tutorial are you following?

Have you checked if openvidu-call-ionic is working for you?

Regarsds

hi, i have follow this tutorial: https://openvidu.io/docs/advanced-features/switch-camera/
the openvidu-call-ionic tutoria works fine, i have tested it. but in my project doesn’t work

It looks like something is wrong in your code. Please, have a look how openvidu-call-ionic do it.

Hi, i have followed thi tutorial. now all work well. But when toggle the camera from front to back, the flashlight button of the android operating system is disabled. is it a known problem?

Hi,

That is really weird and i have never heard that… I’ll try to research it.

By the way, you also can switch your devices without renegociating the webrtc media (that way is using in openvidu-call-ionic and it will be changed). Simply replacing the media stream track.

Regards