Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Player 0 video Status Changed Detected by Timer: init=>paused Javascript #10

Open
xAlstrat opened this issue Jul 31, 2019 · 5 comments
Open

Comments

@xAlstrat
Copy link

xAlstrat commented Jul 31, 2019

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 !

@Matrixbirds
Copy link

Matrixbirds commented Aug 1, 2019

@xAlstrat Please provide your web browser environment i will try to reproduce it ASAP.

@xAlstrat
Copy link
Author

xAlstrat commented Aug 1, 2019

The browser is firefox 68.0, and the SO Ubuntu 16.

Publishing resumes the video stream (but also means that the webcam preview won't be a preview anymore).

The solution I found was to stop the stream and to play it again to the same DOM instead of using resume(). I think is a problem of the web sdk.

Thanks!

@plutoless
Copy link
Contributor

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?

@Kailash-Malviya-bs
Copy link

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

@plutoless
Copy link
Contributor

@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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants