fix site detection, add hide logo to macro url

This commit is contained in:
DispatchCommit 2021-07-12 14:45:49 -07:00 committed by jessopb
parent 8253f5e0dc
commit 47d9b4a866

View file

@ -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<Props>(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({