use insecure mode (#74)

This commit is contained in:
mayeaux 2021-10-14 11:55:46 +03:00 committed by GitHub
parent 53063931ab
commit 5f55a3f128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,7 +589,12 @@ export default React.memo<Props>(function VideoJs(props: Props) {
if (shouldShowAnAd && browserIsChrome && !IS_MOBILE) {
// fire up ima integration via module
player.ima({adTagUrl: macroUrl});
player.ima({
adTagUrl: macroUrl,
vpaidMode: 2, // 2 = INSECURE
// // $FlowFixMe
// vpaidMode: google.ima.ImaSdkSettings.VpaidMode.INSECURE,
});
}
// kick player in the butt, sometimes it doesn't always autoplay when it should