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:
commit
e54ed4de1d
2 changed files with 10 additions and 2 deletions
|
@ -658,6 +658,11 @@ import { appRouter } from '../appRouter';
|
||||||
}
|
}
|
||||||
|
|
||||||
function onStateChanged(event, state) {
|
function onStateChanged(event, state) {
|
||||||
|
if (event.type === 'init') {
|
||||||
|
// skip non-ready state
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.debug('nowplaying event: ' + event.type);
|
console.debug('nowplaying event: ' + event.type);
|
||||||
const player = this;
|
const player = this;
|
||||||
|
|
||||||
|
|
|
@ -2385,8 +2385,11 @@ class PlaybackManager {
|
||||||
|
|
||||||
streamInfo.fullscreen = playOptions.fullscreen;
|
streamInfo.fullscreen = playOptions.fullscreen;
|
||||||
|
|
||||||
getPlayerData(player).isChangingStream = false;
|
const playerData = getPlayerData(player);
|
||||||
getPlayerData(player).maxStreamingBitrate = maxBitrate;
|
|
||||||
|
playerData.isChangingStream = false;
|
||||||
|
playerData.maxStreamingBitrate = maxBitrate;
|
||||||
|
playerData.streamInfo = streamInfo;
|
||||||
|
|
||||||
return player.play(streamInfo).then(function () {
|
return player.play(streamInfo).then(function () {
|
||||||
loading.hide();
|
loading.hide();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue