From 47d9b4a8667c4f9da80f0626bced58209154b86b Mon Sep 17 00:00:00 2001 From: DispatchCommit Date: Mon, 12 Jul 2021 14:45:49 -0700 Subject: [PATCH] fix site detection, add hide logo to macro url --- ui/component/viewers/videoViewer/internal/videojs.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 73c53e822..3315d7f36 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -32,7 +32,9 @@ const macroUrl = `&AV_CONSENT=[CONSENT_MACRO]` + `&skip=true` + `&skiptimer=5` + + `&logo=false` + `&usevslot=true` + + `&vastretry=3` + `&hidecontrols=false`; export type Player = { @@ -603,7 +605,7 @@ export default React.memo(function VideoJs(props: Props) { // pre-roll ads // This must be initialized earlier than everything else // otherwise a race condition occurs if we place this in the onReady call back - if (allowPreRoll && !SIMPLE_SITE && window.google) { + if (allowPreRoll && SIMPLE_SITE && window.google) { const google = window.google; // player.aniview(); vjs.ima({