src/ads.js
// This improves speed and accuracy when returning from an ad break.
This improves speed and accuracy when returning from an ad break.
This improves speed and accuracy when returning from an ad break .
shouldPlayContentBehindAd(somePlayer = player) {
      if (!somePlayer) {
        throw new Error('shouldPlayContentBehindAd requires a player as a param');
      } else if (!somePlayer.ads.settings.liveCuePoints) {
        return false;
      } else {
        return !videojs.browser.IS_IOS &&
               !videojs.browser.IS_ANDROID &&
               somePlayer.duration() === Infinity;
      }
    }
shouldPlayContentBehindAd ( somePlayer = player ) { if ( ! somePlayer ) { throw new Error ( 'shouldPlayContentBehindAd requires a player as a param' ) ; } else if ( ! somePlayer . ads . settings . liveCuePoints ) { return false ; } else { return ! videojs . browser . IS_IOS && ! videojs . browser . IS_ANDROID && somePlayer . duration ( ) === Infinity ; } }
This improves speed and accuracy when returning from an ad break.
This improves speed and accuracy when returning from an ad break .