mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3501 from dmitrylyzo/fix-stream-change
Fix old streamInfo on stream change
This commit is contained in:
commit
44f53e88ef
1 changed files with 4 additions and 4 deletions
|
@ -1721,17 +1721,17 @@ class PlaybackManager {
|
|||
}
|
||||
|
||||
function setSrcIntoPlayer(apiClient, player, streamInfo) {
|
||||
return player.play(streamInfo).then(function () {
|
||||
const playerData = getPlayerData(player);
|
||||
|
||||
playerData.isChangingStream = false;
|
||||
playerData.streamInfo = streamInfo;
|
||||
|
||||
return player.play(streamInfo).then(function () {
|
||||
playerData.isChangingStream = false;
|
||||
streamInfo.started = true;
|
||||
streamInfo.ended = false;
|
||||
|
||||
sendProgressUpdate(player, 'timeupdate');
|
||||
}, function (e) {
|
||||
const playerData = getPlayerData(player);
|
||||
playerData.isChangingStream = false;
|
||||
|
||||
onPlaybackError.call(player, e, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue