From 5f55a3f12844c4b3f84ec195294bad467f81fc9e Mon Sep 17 00:00:00 2001 From: mayeaux Date: Thu, 14 Oct 2021 11:55:46 +0300 Subject: [PATCH] use insecure mode (#74) --- ui/component/viewers/videoViewer/internal/videojs.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index c5c7fe0e8..f8acac950 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -589,7 +589,12 @@ export default React.memo(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