Skip to content

Commit

Permalink
add support for setDisableCustomPlaybackForIOS10Plus
Browse files Browse the repository at this point in the history
  • Loading branch information
ehoch committed Jun 14, 2017
1 parent 75da7b5 commit 25c4d78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ The plugin accepts additional settings beyond the two required settings shown in
| contribAdsSettings | object | Additional settings to be passed to the contrib-ads plugin(2), used by,this IMA plugin. |
| debug | boolean | True to load the debug version of the plugin, false to load the non-debug version.,Defaults to false. |
| disableFlashAds | boolean | True to disable Flash ads - Flash ads will be considered an unsupported ad type. Defaults to false. |
| disableCustomPlaybackForIOS10Plus | boolean | Sets whether to disable custom playback on iOS 10+ browsers. If true, ads will play inline if the content video is inline. This enables TrueView skippable ads. Defaults to false. |
| forceNonLinearFullSlot | boolean | True to force non-linear AdSense ads to render as linear fullslot.,If set, the content video will be paused and the non-linear text or image ad will be rendered as,fullslot. The content video will resume once the ad has been skipped or closed. |
| locale | string | Locale for ad localization. This may be any,ISO 639-1 (two-letter) or ISO 639-2,(three-letter) code(3). Defaults to 'en'. |
| nonLinearWidth | number | Desired width of non-linear ads. Defaults to player width. |
Expand Down
5 changes: 4 additions & 1 deletion src/videojs.ima.js
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,10 @@
google.ima.settings.setDisableFlashAds(this.settings['disableFlashAds']);
}

if (this.settings['disableCustomPlaybackForIOS10Plus']) {
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.settings['disableCustomPlaybackForIOS10Plus']);
}

createAdContainer_();
this.adsLoader = new google.ima.AdsLoader(this.adDisplayContainer);

Expand Down Expand Up @@ -1449,4 +1453,3 @@
var registerPlugin = videojs.registerPlugin || videojs.plugin;
registerPlugin('ima', init);
});

0 comments on commit 25c4d78

Please sign in to comment.