rx-player 4.2.0-dev.2024080900 → 4.2.0-dev.2024081300

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rx-player",
3
3
  "author": "Canal+",
4
- "version": "4.2.0-dev.2024080900",
4
+ "version": "4.2.0-dev.2024081300",
5
5
  "description": "Canal+ HTML5 Video Player",
6
6
  "main": "./dist/commonjs/index.js",
7
7
  "module": "./dist/es2017/index.js",
@@ -409,7 +409,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
409
409
  // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
410
410
  videoElement.preload = "auto";
411
411
 
412
- this.version = /* PLAYER_VERSION */ "4.2.0-dev.2024080900";
412
+ this.version = /* PLAYER_VERSION */ "4.2.0-dev.2024081300";
413
413
  this.log = log;
414
414
  this.state = "STOPPED";
415
415
  this.videoElement = videoElement;
@@ -3235,7 +3235,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
3235
3235
  }
3236
3236
  }
3237
3237
  }
3238
- Player.version = /* PLAYER_VERSION */ "4.2.0-dev.2024080900";
3238
+ Player.version = /* PLAYER_VERSION */ "4.2.0-dev.2024081300";
3239
3239
 
3240
3240
  /** Every events sent by the RxPlayer's public API. */
3241
3241
  interface IPublicAPIEvent {
@@ -275,6 +275,31 @@ function buildKeySystemConfigurations(
275
275
  sessionTypes,
276
276
  };
277
277
 
278
+ if (audioCapabilitiesConfig !== undefined) {
279
+ if (videoCapabilitiesConfig !== undefined) {
280
+ return [wantedMediaKeySystemConfiguration];
281
+ }
282
+ return [
283
+ wantedMediaKeySystemConfiguration,
284
+ {
285
+ ...wantedMediaKeySystemConfiguration,
286
+ // Re-try without `videoCapabilities` in case the EME implementation is
287
+ // buggy
288
+ videoCapabilities: undefined,
289
+ } as unknown as MediaKeySystemConfiguration,
290
+ ];
291
+ } else if (videoCapabilitiesConfig !== undefined) {
292
+ return [
293
+ wantedMediaKeySystemConfiguration,
294
+ {
295
+ ...wantedMediaKeySystemConfiguration,
296
+ // Re-try without `audioCapabilities` in case the EME implementation is
297
+ // buggy
298
+ audioCapabilities: undefined,
299
+ } as unknown as MediaKeySystemConfiguration,
300
+ ];
301
+ }
302
+
278
303
  return [
279
304
  wantedMediaKeySystemConfiguration,
280
305