mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
fix(UI): Avoid show resolution selector when using remote playback (#8628)
This commit is contained in:
committed by
GitHub
parent
79e62bca03
commit
d60dbf3e6f
@@ -284,7 +284,8 @@ shaka.ui.ResolutionSelection = class extends shaka.ui.SettingsMenu {
|
||||
let tracks = [];
|
||||
// When played with src=, the variant tracks available from
|
||||
// player.getVariantTracks() represent languages, not resolutions.
|
||||
if (this.player.getLoadMode() != shaka.Player.LoadMode.SRC_EQUALS) {
|
||||
if (this.player.getLoadMode() != shaka.Player.LoadMode.SRC_EQUALS &&
|
||||
!this.player.isRemotePlayback()) {
|
||||
tracks = this.player.getVariantTracks() || [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user