1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #3373 from dmitrylyzo/fix-theme-change

Fix theme song playback when switching items with different themes
This commit is contained in:
Bill Thornton 2022-02-13 00:55:12 -05:00 committed by GitHub
commit e54ed4de1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -658,6 +658,11 @@ import { appRouter } from '../appRouter';
}
function onStateChanged(event, state) {
if (event.type === 'init') {
// skip non-ready state
return;
}
console.debug('nowplaying event: ' + event.type);
const player = this;

View file

@ -2385,8 +2385,11 @@ class PlaybackManager {
streamInfo.fullscreen = playOptions.fullscreen;
getPlayerData(player).isChangingStream = false;
getPlayerData(player).maxStreamingBitrate = maxBitrate;
const playerData = getPlayerData(player);
playerData.isChangingStream = false;
playerData.maxStreamingBitrate = maxBitrate;
playerData.streamInfo = streamInfo;
return player.play(streamInfo).then(function () {
loading.hide();