mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed bug when you play a video and one is already playing
This commit is contained in:
parent
4351fda3d1
commit
efda2ca3f5
1 changed files with 3 additions and 1 deletions
|
@ -169,6 +169,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
playVideo: function (items, startPosition) {
|
playVideo: function (items, startPosition) {
|
||||||
|
//stop/kill videoJS
|
||||||
|
if (MediaPlayer.mediaElement) MediaPlayer.stop();
|
||||||
|
|
||||||
var item = items[0];
|
var item = items[0];
|
||||||
|
|
||||||
|
@ -248,7 +250,7 @@
|
||||||
localStorage.setItem("volume", (this).volume());
|
localStorage.setItem("volume", (this).volume());
|
||||||
});
|
});
|
||||||
|
|
||||||
(this).addEvent("play", MediaPlayer.updateProgress);
|
(this).addEvent("play", MediaPlayer.updateProgress);
|
||||||
|
|
||||||
ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), item.Id);
|
ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), item.Id);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue