bugfix and turn skip back on
This commit is contained in:
parent
3afee8e5c9
commit
6c463e7310
3 changed files with 6 additions and 6 deletions
|
@ -319,7 +319,6 @@ const analytics: Analytics = {
|
|||
|
||||
apiLogView: (uri, outpoint, claimId, timeToStart) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
if (internalAnalyticsEnabled && (isProduction || devInternalApis)) {
|
||||
const params: {
|
||||
uri: string,
|
||||
|
|
|
@ -38,7 +38,7 @@ const VERSION = '0.0.1';
|
|||
const macroUrl =
|
||||
`https://vast.aniview.com/api/adserver61/vast/` +
|
||||
`?AV_PUBLISHERID=60afcbc58cfdb065440d2426` +
|
||||
`&AV_CHANNELID=b354389c7adb506d0bd9a4` +
|
||||
`&AV_CHANNELID=612fb75a42715a07645a614c` +
|
||||
`&AV_URL=[URL]` +
|
||||
`&cb=[CACHEBUSTING]` +
|
||||
`&AV_WIDTH=[WIDTH]` +
|
||||
|
@ -47,8 +47,8 @@ const macroUrl =
|
|||
// `&AV_CCPA=[CCPA_MACRO]` +
|
||||
// `&AV_GDPR=[GDPR_MACRO]` +
|
||||
// `&AV_CONSENT=[CONSENT_MACRO]` +
|
||||
`&skip=false` +
|
||||
`&skiptimer=2` +
|
||||
`&skip=true` +
|
||||
`&skiptimer=5` +
|
||||
`&logo=true` +
|
||||
`&usevslot=true` +
|
||||
`&vastretry=2` +
|
||||
|
|
|
@ -539,6 +539,8 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
|||
// this seems like a weird thing to have to check for here
|
||||
if (!player) return;
|
||||
|
||||
vjs.aniview();
|
||||
|
||||
// Add various event listeners to player
|
||||
player.one('play', onInitialPlay);
|
||||
player.on('play', resolveCtrlText);
|
||||
|
@ -579,9 +581,8 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
|||
|
||||
// I think this is a callback function
|
||||
const videoNode = containerRef.current && containerRef.current.querySelector('video, audio');
|
||||
onPlayerReady(player, videoNode);
|
||||
|
||||
vjs.aniview();
|
||||
onPlayerReady(player, videoNode);
|
||||
});
|
||||
|
||||
// pre-roll ads
|
||||
|
|
Loading…
Add table
Reference in a new issue