You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using 2.27.0, still the issue exist. Is there any work arounds to overcome this issue.
I'm trying to catch and trying createLocalVideoTrak to have new track. That also not working.
Team, please confirm whether we need to use async/await or not inside forEach loop here?
also, do we need to use stop() function in iPhone as well or not required?
Getting error in browser. Provide your suggestions, I'm struck here.
The text was updated successfully, but these errors were encountered:
Thanks for writing in with your issue. You don't need to call stop() before calling restart(). Also, it is better to await on the Promise returned by restart(). Hope this helps.
Thanks for your inputs.
Tried without stop() in Samsung mobiles and when we switch camera it was not switching properly. As workaround I've added stop() before calling restart() for android mobiles.
I've to verify iPhone devices with await on the restart().
All works fine for the first time. Whenever we switch the cameras for the second time in Samsung mobiles getting "DOMException: Could not start video source" error in console and the screen becomes black.
Hey @loganathanav I've run into this issue extensively before. We realized that we were asking for permissions twice. Once through getUserMedia() and another through createLocalTracks(). Didn't realize that createLocalTracks() also asks for permissions. Not sure if related to your issue but hope it helps,
I'm using 2.27.0, still the issue exist. Is there any work arounds to overcome this issue.
I'm trying to catch and trying createLocalVideoTrak to have new track. That also not working.
if (isApplePhone) {
room?.localParticipant?.videoTracks.forEach(
(publication) => {
publication.track.stop();
publication.track.restart({ facingMode: 'environment' });
}
);
} else if (isAndroidPhone) {
room?.localParticipant?.videoTracks.forEach(
async (publication) => {
publication.track.stop();
await publication.track.restart({
facingMode: 'environment',
});
}
);
}
Team, please confirm whether we need to use async/await or not inside forEach loop here?
also, do we need to use stop() function in iPhone as well or not required?
Getting error in browser. Provide your suggestions, I'm struck here.
The text was updated successfully, but these errors were encountered: