mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-09-02 21:04:10 +03:00
Disable ExoPlayer and External player while in SyncPlay
(cherry picked from commit 49b821ea4e)
This commit is contained in:
committed by
Niels van Velzen
parent
c502c08a8d
commit
7d481c18ed
@@ -48,7 +48,9 @@ export class ExoPlayerPlugin {
|
||||
}
|
||||
|
||||
canPlayItem(item, playOptions) {
|
||||
return this._nativePlayer.isEnabled() && playOptions.fullscreen;
|
||||
return this._nativePlayer.isEnabled() &&
|
||||
playOptions.fullscreen &&
|
||||
!this.playbackManager.syncPlayEnabled;
|
||||
}
|
||||
|
||||
async stop(destroyPlayer) {
|
||||
|
||||
@@ -34,7 +34,9 @@ export class ExternalPlayerPlugin {
|
||||
}
|
||||
|
||||
canPlayItem(item, playOptions) {
|
||||
return this._externalPlayer.isEnabled() && playOptions.fullscreen;
|
||||
return this._externalPlayer.isEnabled() &&
|
||||
playOptions.fullscreen &&
|
||||
!this.playbackManager.syncPlayEnabled;
|
||||
}
|
||||
|
||||
currentSrc() {
|
||||
|
||||
Reference in New Issue
Block a user