Skip to content

Commit

Permalink
fix: Fix advanced sample for mobile. (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbuso committed Jan 2, 2018
1 parent 1d3a686 commit c0c4bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/advanced/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ var Ads = function() {
});
this.console = document.getElementById('ima-sample-console');

this.player = videojs('content_video');

// Remove controls from the player on iPad to stop native controls from stealing
// our click
var contentPlayer = document.getElementById('content_video_html5_api');
Expand All @@ -40,7 +42,6 @@ var Ads = function() {
navigator.userAgent.match(/Android/i)) {
startEvent = 'touchend';
}
this.player = videojs('content_video');
this.player.one(startEvent, this.init.bind(this));

var options = {
Expand Down

0 comments on commit c0c4bee

Please sign in to comment.