From 892a6deeaf705e3da29bc0d5894d89c784b687b9 Mon Sep 17 00:00:00 2001 From: zeppi Date: Tue, 10 Aug 2021 15:41:49 -0400 Subject: [PATCH] reenable prerolls --- .../viewers/videoViewer/internal/videojs.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 90db2d175..29366c338 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -1,6 +1,6 @@ // @flow import React, { useEffect, useRef, useState } from 'react'; -// import { SIMPLE_SITE } from 'config'; +import { SIMPLE_SITE } from 'config'; import Button from 'component/button'; import * as ICONS from 'constants/icons'; import classnames from 'classnames'; @@ -13,7 +13,7 @@ import hlsQualitySelector from './plugins/videojs-hls-quality-selector/plugin'; import recsys from './plugins/videojs-recsys/plugin'; import qualityLevels from 'videojs-contrib-quality-levels'; import isUserTyping from 'util/detect-typing'; -// import './plugins/videojs-aniview/plugin'; +import './plugins/videojs-aniview/plugin'; const isDev = process.env.NODE_ENV !== 'production'; @@ -193,7 +193,7 @@ export default React.memo(function VideoJs(props: Props) { adUrl, claimId, userId, - // allowPreRoll, + allowPreRoll, shareTelemetry, } = props; @@ -585,9 +585,9 @@ export default React.memo(function VideoJs(props: Props) { // This must be initialized earlier than everything else // otherwise a race condition occurs if we place this in the onReady call back // allow if isDev because otherwise you'll never see ads when basing to master - // if ((allowPreRoll && SIMPLE_SITE) || isDev) { - // vjs.aniview(); - // } + if ((allowPreRoll && SIMPLE_SITE) || isDev) { + vjs.aniview(); + } // fixes #3498 (https://github.com/lbryio/lbry-desktop/issues/3498) // summary: on firefox the focus would stick to the fullscreen button which caused buggy behavior with spacebar