Embed: save stream state, and if the stream is playing, don't show annoying 'Stream is waiting for data' messages.

This commit is contained in:
Cat 2020-01-09 14:46:05 +01:00 committed by Thulinma
parent ead434b730
commit 9b92496f4e
3 changed files with 12 additions and 1 deletions

View file

@ -1728,6 +1728,9 @@ MistSkins["default"] = {
else if ("decodingIssues" in MistVideo.skin.blueprints) { //dev mode
if (("player" in MistVideo) && ("api" in MistVideo.player) && (MistVideo.video)) {
details = [];
if (typeof MistVideo.state != "undefined") {
details.push(["Stream state:",MistVideo.state]);
}
if (typeof MistVideo.player.api.currentTime != "undefined") {
details.push(["Current video time:",MistUtil.format.time(MistVideo.player.api.currentTime)]);
}