Skip to content

Commit

Permalink
fix: null check fullscreen toggle to fix ios without it
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Feb 14, 2020
1 parent 06c6712 commit be786f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ void main() {
}

// if ios remove full screen toggle
if (videojs.browser.IS_IOS) {
if (videojs.browser.IS_IOS && this.player_.controlBar && this.player_.controlBar.fullscreenToggle) {
this.player_.controlBar.fullscreenToggle.hide();
}

Expand Down Expand Up @@ -798,7 +798,7 @@ void main() {
}

// show the fullscreen again
if (videojs.browser.IS_IOS) {
if (videojs.browser.IS_IOS && this.player_.controlBar && this.player_.controlBar.fullscreenToggle) {
this.player_.controlBar.fullscreenToggle.show();
}

Expand Down

0 comments on commit be786f5

Please sign in to comment.