Closed functioncall closed 3 months ago
Seems like this could be causing the issue. But is there a work around?
Solved by reloading the player on error.
player.on('error', () => {
console.log('Stream stopped');
setTimeout(() => {
this.loadOvenPlayerScript().then(() => {
this.setupPlayer();
});
}, 1000);
});
Currently, when there is no stream playing, it just shows "The connection with the low latency(OME) failed", but when I start to publish the stream. I had to either manually hit the play button if the controls were shown (which I don't want to show) or I have to either reload the page for the stream to start automatically.
Is there a way to detect when the "stream becomes actually available" so I can call the play() function on that event to start the stream automatically? I tried playing around with below states, but it doesn't seem to work.
Any help would be highly appreciated. Thanks! (: