diff --git a/src/plugin.js b/src/plugin.js index 9844f306..7a1c5f92 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -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(); } @@ -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(); }