bugfix and turn skip back on

This commit is contained in:
Anthony 2021-10-11 16:19:38 +03:00
parent 3afee8e5c9
commit 6c463e7310
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
3 changed files with 6 additions and 6 deletions

View file

@ -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,

View file

@ -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` +

View file

@ -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