mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Merge pull request #1341 from MrTimscampi/syncplay-fix
Fix traceback in SyncPlay when casting to Google Cast
This commit is contained in:
commit
51b2eba8f1
@ -265,10 +265,9 @@ class SyncPlayManager {
|
|||||||
events.on(player, 'timeupdate', this._onTimeUpdate);
|
events.on(player, 'timeupdate', this._onTimeUpdate);
|
||||||
events.on(player, 'playing', this._onPlaying);
|
events.on(player, 'playing', this._onPlaying);
|
||||||
events.on(player, 'waiting', this._onWaiting);
|
events.on(player, 'waiting', this._onWaiting);
|
||||||
this.playbackRateSupported = player.supports('PlaybackRate');
|
|
||||||
|
|
||||||
// Save player current PlaybackRate value
|
// Save player current PlaybackRate value
|
||||||
if (this.playbackRateSupported) {
|
if (player.supports && player.supports('PlaybackRate')) {
|
||||||
this.localPlayerPlaybackRate = player.getPlaybackRate();
|
this.localPlayerPlaybackRate = player.getPlaybackRate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user