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
{{ message }}
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
I'm trying to show a preview of the users webcam before publishing to the client/room.
local_stream.play('my-dom') works okay when there is no other users in the room: the user can see himself before and after publishing (client.publish(local_stream)). But when is there other users in the room, playing the local stream (before publishing it) doesn't seem to work.
The console shows 'Player 0 video Status Changed Detected by Timer: init=>paused'.
Using local_stream.resume() didn't work. Playing it again logs that the stream is paused and can't be played again, just resumed.
Thanks !
The text was updated successfully, but these errors were encountered:
is there any dom changes happening to your local stream dom? i'm wondering if it's because you 1. played video first 2. change the dom, which causes video play to pause?
so @plutoless if that is the case I mean if dom changes are there then what to do
because I'm getting the same issue dom changes are there in my case how can I resolve that could you please assist me on this
@Kailash-Malviya-bs dom change should be expected behavior controlled by app logic. before you are going to change the video dom you will need to stop the stream and call play again when you new dom is ready
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to show a preview of the users webcam before publishing to the client/room.
local_stream.play('my-dom') works okay when there is no other users in the room: the user can see himself before and after publishing (client.publish(local_stream)). But when is there other users in the room, playing the local stream (before publishing it) doesn't seem to work.
The console shows 'Player 0 video Status Changed Detected by Timer: init=>paused'.
Using local_stream.resume() didn't work. Playing it again logs that the stream is paused and can't be played again, just resumed.
Thanks !
The text was updated successfully, but these errors were encountered: