Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move airplay button to default config
  • Loading branch information
Alvaro Velad committed Jul 8, 2020
commit 95df511c490f82c72979a54e56f0ec522adeaaff
10 changes: 5 additions & 5 deletions ui/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ shaka.ui.Overlay = class {

goog.asserts.assert(this.player_ != null, 'Should have a player!');

// Check AirPlay support
if (window.WebKitPlaybackTargetAvailabilityEvent) {
this.config_.overflowMenuButtons.push('airplay');
}

this.controls_.configure(this.config_);

this.controls_.dispatchEvent(new shaka.util.FakeEvent('uiupdated'));
Expand Down Expand Up @@ -208,6 +203,11 @@ shaka.ui.Overlay = class {
forceLandscapeOnFullscreen: true,
};

// Check AirPlay support
if (window.WebKitPlaybackTargetAvailabilityEvent) {
config.overflowMenuButtons.push('airplay');
}

// On mobile, by default, hide the volume slide and the small play/pause
// button and show the big play/pause button in the center.
// This is in line with default styles in Chrome.
Expand Down