Hi,
We would like to autoplay the stream for the viewers when broadcaster starts to broadcast. In our case, the publisher creates an event and we generate a unique Id for the streamName and users subscribe to the event with the same Id.
What we would like to do is, if the subscriber is already on the page and publisher starts streaming, we want to autoplay the stream for them. I do know that chrome will stop the autoplay but it's ok for it to be started as muted.
Is there any callback that we can use in the API to know if the stream has started?
We would like to autoplay the stream for the viewers when broadcaster starts to broadcast. In our case, the publisher creates an event and we generate a unique Id for the streamName and users subscribe to the event with the same Id.
What we would like to do is, if the subscriber is already on the page and publisher starts streaming, we want to autoplay the stream for them. I do know that chrome will stop the autoplay but it's ok for it to be started as muted.
Is there any callback that we can use in the API to know if the stream has started?