From c21fef5b24cf77a8488033c9dc882b785f271382 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 5 Nov 2020 12:16:35 -0500 Subject: [PATCH] new ads provider --- .../viewers/videoViewer/internal/videojs.jsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index a7d210a61..875bc2b3e 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -7,9 +7,9 @@ import videojs from 'video.js/dist/alt/video.core.novtt.min.js'; import 'video.js/dist/alt/video-js-cdn.min.css'; import eventTracking from 'videojs-event-tracking'; import isUserTyping from 'util/detect-typing'; -// import './adstest.js'; +import './adstest.js'; // import './adstest2.js'; -// import './adstest.css'; +import './adstest.css'; const isDev = process.env.NODE_ENV !== 'production'; @@ -110,11 +110,13 @@ export default React.memo(function VideoJs(props: Props) { type: 'video/mp4', }, ]; - // videoJsOptions.plugins.vastClient = { - // adTagUrl: 'https://rozamimo9za10.com/ceef/gdt3g0/tbt/1794126/tlk.xml', - // adsCancelTimeout: 5000, - // adsEnabled: true, - // }; + + // $FlowFixMe + videoJsOptions.plugins.vastClient = { + adTagUrl: 'https://serve.adspruce.com/vpaid-8394-3.xml', + adsCancelTimeout: 5000, + adsEnabled: true, + }; } videoJsOptions.muted = startMuted;