Embed: WebRTC improvements:

- make webrtc obey autoplay = false; when video is paused, disable autoplay and vise versa
- silenced some unneccesary webrtc errors
- webrtc: pause player on stop, so that "stream offline" message is shown
- improved webrtc wrapper robustness
- more webrtc don't autoplay when paused
- when not yet connected during a seek, wait until connected and seek then
This commit is contained in:
Cat 2020-01-28 11:22:17 +01:00 committed by Thulinma
parent 01b957d136
commit 214b584956
6 changed files with 51 additions and 10 deletions

View file

@ -943,6 +943,7 @@ function MistVideo(streamName,options) {
case "Stream status is invalid?!":
if ((MistVideo.player) && (MistVideo.player.api) && (!MistVideo.player.api.paused)) {
//something is (still) playing
MistVideo.log(data.error,"error");
return;
}
buttons = {polling:true};