1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
Daniel Neto 2024-02-08 10:08:03 -03:00
parent c940cd61ac
commit 59a20745e7
2101 changed files with 1312074 additions and 30292 deletions

View file

@ -1,4 +1,4 @@
/*! @name videojs-contrib-ads @version 7.3.2 @license Apache-2.0 */
/*! @name videojs-contrib-ads @version 7.3.3 @license Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js'), require('global/window'), require('global/document')) :
typeof define === 'function' && define.amd ? define(['video.js', 'global/window', 'global/document'], factory) :
@ -9,7 +9,7 @@
window = window && window.hasOwnProperty('default') ? window['default'] : window;
document = document && document.hasOwnProperty('default') ? document['default'] : document;
var version = "7.3.2";
var version = "7.3.3";
/*
* Implements the public API available in `player.ads` as well as application state.
@ -1633,9 +1633,12 @@
player.one('contentloadedmetadata', restoreTracks);
// adding autoplay guarantees that Safari will load the content so we can
// seek back to the correct time after ads
if (videojs.browser.IS_IOS && !player.autoplay()) {
player.autoplay(true);
// seek back to the correct time after ads.
// This is done directly on the html5 tech because if the integration has set
// normalizeAutoplay to true, the async play request via autoplay -> manualAutoplay_
// causes a visible skipback of the content after the ad break
if (videojs.browser.IS_IOS && !player.autoplay() && typeof player.techCall_ === 'function') {
player.techCall_('setAutoplay', true);
// if we get here, the player was not originally configured to autoplay,
// so we should remove it after it has served its purpose