fix site detection, add hide logo to macro url
This commit is contained in:
parent
8253f5e0dc
commit
47d9b4a866
1 changed files with 3 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue