@srgssr/pillarbox-web 1.23.2 → 1.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  const videojs = require('video.js');
4
4
  require('videojs-contrib-eme');
5
5
 
6
- const version = "1.23.1";
6
+ const version = "1.23.2";
7
7
 
8
8
  /** @import VJSPlayer from 'video.js/dist/types/player' */
9
9
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -1,7 +1,7 @@
1
1
  import videojs from 'video.js';
2
2
  import 'videojs-contrib-eme';
3
3
 
4
- const version = "1.23.1";
4
+ const version = "1.23.2";
5
5
 
6
6
  /** @import VJSPlayer from 'video.js/dist/types/player' */
7
7
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -94,7 +94,7 @@ function _toPropertyKey(t) {
94
94
  return "symbol" == typeof i ? i : i + "";
95
95
  }
96
96
 
97
- const version = "1.23.1";
97
+ const version = "1.23.2";
98
98
 
99
99
  /** @import VJSPlayer from 'video.js/dist/types/player' */
100
100
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -90,7 +90,7 @@ function _toPropertyKey(t) {
90
90
  return "symbol" == typeof i ? i : i + "";
91
91
  }
92
92
 
93
- const version = "1.23.1";
93
+ const version = "1.23.2";
94
94
 
95
95
  /** @import VJSPlayer from 'video.js/dist/types/player' */
96
96
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -93,7 +93,7 @@
93
93
  return "symbol" == typeof i ? i : i + "";
94
94
  }
95
95
 
96
- const version$8 = "1.23.1";
96
+ const version$8 = "1.23.2";
97
97
 
98
98
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
99
99
 
@@ -68964,7 +68964,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
68964
68964
  videojs.registerPlugin('reloadSourceOnError', reloadSourceOnError);
68965
68965
  }
68966
68966
 
68967
- /*! @name videojs-contrib-eme @version 5.5.1 @license Apache-2.0 */
68967
+ /*! @name videojs-contrib-eme @version 5.5.2 @license Apache-2.0 */
68968
68968
 
68969
68969
  const stringToUint16Array = string => {
68970
68970
  // 2 bytes for each char
@@ -70172,7 +70172,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
70172
70172
  });
70173
70173
  };
70174
70174
 
70175
- var version = "5.5.1";
70175
+ var version = "5.5.2";
70176
70176
 
70177
70177
  const hasSession = (sessions, initData) => {
70178
70178
  for (let i = 0; i < sessions.length; i++) {
@@ -70218,7 +70218,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
70218
70218
  // This can be initialized manually with initLegacyFairplay().
70219
70219
 
70220
70220
 
70221
- if (options.keySystems[LEGACY_FAIRPLAY_KEY_SYSTEM]) {
70221
+ if (options.keySystems[LEGACY_FAIRPLAY_KEY_SYSTEM] && window$4.WebKitMediaKeys && player.eme.legacyFairplayIsUsed) {
70222
70222
  videojs.log.debug('eme', `Ignoring \'encrypted\' event, using legacy fairplay keySystem ${LEGACY_FAIRPLAY_KEY_SYSTEM}`);
70223
70223
  return Promise.resolve();
70224
70224
  }
@@ -70618,6 +70618,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
70618
70618
  }
70619
70619
  };
70620
70620
 
70621
+ player.eme.legacyFairplayIsUsed = true;
70621
70622
  let videoElement = player.tech_.el_; // Support Safari EME with FairPlay
70622
70623
  // (also used in early Chrome or Chrome with EME disabled flag)
70623
70624
 
@@ -70631,6 +70632,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
70631
70632
  videoElement.removeEventListener('webkitneedkey', webkitNeedKeyEventHandler);
70632
70633
  }
70633
70634
 
70635
+ player.eme.legacyFairplayIsUsed = false;
70634
70636
  videoElement = null;
70635
70637
  }; // auto-cleanup:
70636
70638
 
@@ -70641,6 +70643,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
70641
70643
  },
70642
70644
 
70643
70645
  detectSupportedCDMs,
70646
+ legacyFairplayIsUsed: false,
70644
70647
  options
70645
70648
  };
70646
70649
  }; // Register the plugin with video.js.