Merge pull request #1341 from MrTimscampi/syncplay-fix

Fix traceback in SyncPlay when casting to Google Cast
This commit is contained in:
dkanada 2020-06-01 23:58:52 +09:00 committed by GitHub
commit 51b2eba8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,10 +265,9 @@ class SyncPlayManager {
events.on(player, 'timeupdate', this._onTimeUpdate);
events.on(player, 'playing', this._onPlaying);
events.on(player, 'waiting', this._onWaiting);
this.playbackRateSupported = player.supports('PlaybackRate');
// Save player current PlaybackRate value
if (this.playbackRateSupported) {
if (player.supports && player.supports('PlaybackRate')) {
this.localPlayerPlaybackRate = player.getPlaybackRate();
}
}