rx-player 3.32.2-dev.2023102600 → 3.32.2-dev.2023110700

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/VERSION +1 -1
  3. package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +7 -7
  4. package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.js +1 -3
  5. package/dist/_esm5.processed/core/api/public_api.js +2 -2
  6. package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +2 -2
  7. package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.js +10 -11
  8. package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +1 -2
  9. package/dist/_esm5.processed/transports/dash/image_pipelines.js +2 -2
  10. package/dist/_esm5.processed/transports/dash/segment_parser.js +2 -3
  11. package/dist/_esm5.processed/transports/dash/text_parser.js +2 -2
  12. package/dist/_esm5.processed/transports/local/segment_parser.js +2 -3
  13. package/dist/_esm5.processed/transports/local/text_parser.js +4 -3
  14. package/dist/rx-player.js +28 -82
  15. package/dist/rx-player.min.js +1 -1
  16. package/package.json +1 -1
  17. package/sonar-project.properties +1 -1
  18. package/src/compat/README.md +18 -12
  19. package/src/core/adaptive/adaptive_representation_selector.ts +8 -18
  20. package/src/core/adaptive/utils/filter_by_width.ts +1 -3
  21. package/src/core/api/public_api.ts +2 -2
  22. package/src/core/api/tracks_management/track_choice_manager.ts +1 -3
  23. package/src/core/segment_buffers/inventory/segment_inventory.ts +7 -14
  24. package/src/parsers/manifest/smooth/create_parser.ts +1 -2
  25. package/src/transports/dash/image_pipelines.ts +1 -2
  26. package/src/transports/dash/segment_parser.ts +1 -2
  27. package/src/transports/dash/text_parser.ts +1 -2
  28. package/src/transports/local/segment_parser.ts +1 -2
  29. package/src/transports/local/text_parser.ts +2 -3
  30. package/dist/_esm5.processed/utils/take_first_set.d.ts +0 -25
  31. package/dist/_esm5.processed/utils/take_first_set.js +0 -32
  32. package/src/utils/__tests__/take_first_set.test.ts +0 -38
  33. package/src/utils/take_first_set.ts +0 -53
package/dist/rx-player.js CHANGED
@@ -9659,8 +9659,6 @@ var task_canceller = __webpack_require__(288);
9659
9659
  var noop = __webpack_require__(8894);
9660
9660
  // EXTERNAL MODULE: ./src/utils/ranges.ts
9661
9661
  var ranges = __webpack_require__(2829);
9662
- // EXTERNAL MODULE: ./src/utils/take_first_set.ts
9663
- var take_first_set = __webpack_require__(5278);
9664
9662
  // EXTERNAL MODULE: ./src/utils/array_find_index.ts
9665
9663
  var array_find_index = __webpack_require__(5138);
9666
9664
  ;// CONCATENATED MODULE: ./src/core/adaptive/utils/get_buffer_levels.ts
@@ -10666,7 +10664,6 @@ function filterByBitrate(representations, bitrate) {
10666
10664
  * limitations under the License.
10667
10665
  */
10668
10666
 
10669
-
10670
10667
  /**
10671
10668
  * Filter representations based on their width:
10672
10669
  * - the highest width considered will be the one linked to the first
@@ -10678,7 +10675,8 @@ function filterByBitrate(representations, bitrate) {
10678
10675
  function filterByWidth(representations, width) {
10679
10676
  var sortedRepsByWidth = representations.slice() // clone
10680
10677
  .sort(function (a, b) {
10681
- return (0,take_first_set/* default */.Z)(a.width, 0) - (0,take_first_set/* default */.Z)(b.width, 0);
10678
+ var _a, _b;
10679
+ return ((_a = a.width) !== null && _a !== void 0 ? _a : 0) - ((_b = b.width) !== null && _b !== void 0 ? _b : 0);
10682
10680
  });
10683
10681
  var repWithMaxWidth = (0,array_find/* default */.Z)(sortedRepsByWidth, function (representation) {
10684
10682
  return typeof representation.width === "number" && representation.width >= width;
@@ -11011,7 +11009,6 @@ function selectOptimalRepresentation(representations, optimalBitrate, minBitrate
11011
11009
 
11012
11010
 
11013
11011
 
11014
-
11015
11012
  // Create default shared references
11016
11013
  var manualBitrateDefaultRef = new reference/* default */.Z(-1);
11017
11014
  manualBitrateDefaultRef.finish();
@@ -11056,15 +11053,16 @@ function createAdaptiveRepresentationSelector(options) {
11056
11053
  * @returns {Array.<Object>}
11057
11054
  */
11058
11055
  return function getEstimates(context, currentRepresentation, representations, playbackObserver, stopAllEstimates) {
11056
+ var _a, _b, _c, _d, _e, _f, _g;
11059
11057
  var type = context.adaptation.type;
11060
11058
  var bandwidthEstimator = _getBandwidthEstimator(type);
11061
- var manualBitrate = (0,take_first_set/* default */.Z)(manualBitrates[type], manualBitrateDefaultRef);
11062
- var minAutoBitrate = (0,take_first_set/* default */.Z)(minAutoBitrates[type], minAutoBitrateDefaultRef);
11063
- var maxAutoBitrate = (0,take_first_set/* default */.Z)(maxAutoBitrates[type], maxAutoBitrateDefaultRef);
11064
- var initialBitrate = (0,take_first_set/* default */.Z)(initialBitrates[type], 0);
11059
+ var manualBitrate = (_a = manualBitrates[type]) !== null && _a !== void 0 ? _a : manualBitrateDefaultRef;
11060
+ var minAutoBitrate = (_b = minAutoBitrates[type]) !== null && _b !== void 0 ? _b : minAutoBitrateDefaultRef;
11061
+ var maxAutoBitrate = (_c = maxAutoBitrates[type]) !== null && _c !== void 0 ? _c : maxAutoBitrateDefaultRef;
11062
+ var initialBitrate = (_d = initialBitrates[type]) !== null && _d !== void 0 ? _d : 0;
11065
11063
  var filters = {
11066
- limitWidth: (0,take_first_set/* default */.Z)(throttlers.limitWidth[type], limitWidthDefaultRef),
11067
- throttleBitrate: (0,take_first_set/* default */.Z)(throttlers.throttleBitrate[type], throttlers.throttle[type], throttleBitrateDefaultRef)
11064
+ limitWidth: (_e = throttlers.limitWidth[type]) !== null && _e !== void 0 ? _e : limitWidthDefaultRef,
11065
+ throttleBitrate: (_g = (_f = throttlers.throttleBitrate[type]) !== null && _f !== void 0 ? _f : throttlers.throttle[type]) !== null && _g !== void 0 ? _g : throttleBitrateDefaultRef
11068
11066
  };
11069
11067
  return getEstimateReference({
11070
11068
  bandwidthEstimator: bandwidthEstimator,
@@ -23631,8 +23629,6 @@ var config = __webpack_require__(6872);
23631
23629
  var log = __webpack_require__(3887);
23632
23630
  // EXTERNAL MODULE: ./src/manifest/utils.ts
23633
23631
  var utils = __webpack_require__(520);
23634
- // EXTERNAL MODULE: ./src/utils/take_first_set.ts
23635
- var take_first_set = __webpack_require__(5278);
23636
23632
  ;// CONCATENATED MODULE: ./src/core/segment_buffers/inventory/buffered_history.ts
23637
23633
  function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23638
23634
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -23756,7 +23752,6 @@ function segment_inventory_arrayLikeToArray(arr, len) { if (len == null || len >
23756
23752
 
23757
23753
 
23758
23754
 
23759
-
23760
23755
  /**
23761
23756
  * Keep track of every chunk downloaded and currently in the linked media
23762
23757
  * buffer.
@@ -23794,6 +23789,7 @@ var SegmentInventory = /*#__PURE__*/function () {
23794
23789
  * @param {TimeRanges} buffered
23795
23790
  */;
23796
23791
  _proto.synchronizeBuffered = function synchronizeBuffered(buffered) {
23792
+ var _a, _b, _c, _d, _e, _f, _g;
23797
23793
  var inventory = this._inventory;
23798
23794
  var inventoryIndex = 0; // Current index considered.
23799
23795
  var thisSegment = inventory[0]; // Current segmentInfos considered
@@ -23819,7 +23815,7 @@ var SegmentInventory = /*#__PURE__*/function () {
23819
23815
  // it:
23820
23816
  // skip until first segment with at least `MINIMUM_SEGMENT_SIZE` past the
23821
23817
  // start of that range.
23822
- while (thisSegment !== undefined && (0,take_first_set/* default */.Z)(thisSegment.bufferedEnd, thisSegment.end) - rangeStart < MINIMUM_SEGMENT_SIZE) {
23818
+ while (thisSegment !== undefined && ((_a = thisSegment.bufferedEnd) !== null && _a !== void 0 ? _a : thisSegment.end) - rangeStart < MINIMUM_SEGMENT_SIZE) {
23823
23819
  thisSegment = inventory[++inventoryIndex];
23824
23820
  }
23825
23821
  // Contains infos about the last garbage-collected segment before
@@ -23833,7 +23829,7 @@ var SegmentInventory = /*#__PURE__*/function () {
23833
23829
  // last garbage-collected segment
23834
23830
  inventory[indexBefore + numberOfSegmentToDelete - 1];
23835
23831
  lastDeletedSegmentInfos = {
23836
- end: (0,take_first_set/* default */.Z)(lastDeletedSegment.bufferedEnd, lastDeletedSegment.end),
23832
+ end: (_b = lastDeletedSegment.bufferedEnd) !== null && _b !== void 0 ? _b : lastDeletedSegment.end,
23837
23833
  precizeEnd: lastDeletedSegment.precizeEnd
23838
23834
  };
23839
23835
  log/* default */.Z.debug("SI: " + numberOfSegmentToDelete + " segments GCed.", bufferType);
@@ -23851,7 +23847,7 @@ var SegmentInventory = /*#__PURE__*/function () {
23851
23847
  }
23852
23848
  // If the current segment is actually completely outside that range (it
23853
23849
  // is contained in one of the next one), skip that part.
23854
- if (rangeEnd - (0,take_first_set/* default */.Z)(thisSegment.bufferedStart, thisSegment.start) >= MINIMUM_SEGMENT_SIZE) {
23850
+ if (rangeEnd - ((_c = thisSegment.bufferedStart) !== null && _c !== void 0 ? _c : thisSegment.start) >= MINIMUM_SEGMENT_SIZE) {
23855
23851
  guessBufferedStartFromRangeStart(thisSegment, rangeStart, lastDeletedSegmentInfos, bufferType);
23856
23852
  if (inventoryIndex === inventory.length - 1) {
23857
23853
  // This is the last segment in the inventory.
@@ -23861,8 +23857,8 @@ var SegmentInventory = /*#__PURE__*/function () {
23861
23857
  }
23862
23858
  thisSegment = inventory[++inventoryIndex];
23863
23859
  // Make contiguous until first segment outside that range
23864
- var thisSegmentStart = (0,take_first_set/* default */.Z)(thisSegment.bufferedStart, thisSegment.start);
23865
- var thisSegmentEnd = (0,take_first_set/* default */.Z)(thisSegment.bufferedEnd, thisSegment.end);
23860
+ var thisSegmentStart = (_d = thisSegment.bufferedStart) !== null && _d !== void 0 ? _d : thisSegment.start;
23861
+ var thisSegmentEnd = (_e = thisSegment.bufferedEnd) !== null && _e !== void 0 ? _e : thisSegment.end;
23866
23862
  var nextRangeStart = i < rangesLength - 1 ? buffered.start(i + 1) : undefined;
23867
23863
  while (thisSegment !== undefined && rangeEnd - thisSegmentStart >= MINIMUM_SEGMENT_SIZE && (nextRangeStart === undefined || rangeEnd - thisSegmentStart >= thisSegmentEnd - nextRangeStart)) {
23868
23864
  var prevSegment = inventory[inventoryIndex - 1];
@@ -23875,8 +23871,8 @@ var SegmentInventory = /*#__PURE__*/function () {
23875
23871
  thisSegment.bufferedStart = prevSegment.bufferedEnd;
23876
23872
  thisSegment = inventory[++inventoryIndex];
23877
23873
  if (thisSegment !== undefined) {
23878
- thisSegmentStart = (0,take_first_set/* default */.Z)(thisSegment.bufferedStart, thisSegment.start);
23879
- thisSegmentEnd = (0,take_first_set/* default */.Z)(thisSegment.bufferedEnd, thisSegment.end);
23874
+ thisSegmentStart = (_f = thisSegment.bufferedStart) !== null && _f !== void 0 ? _f : thisSegment.start;
23875
+ thisSegmentEnd = (_g = thisSegment.bufferedEnd) !== null && _g !== void 0 ? _g : thisSegment.end;
23880
23876
  }
23881
23877
  }
23882
23878
  }
@@ -39444,8 +39440,6 @@ var regenerator = __webpack_require__(4687);
39444
39440
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
39445
39441
  // EXTERNAL MODULE: ./src/utils/request/index.ts + 1 modules
39446
39442
  var request = __webpack_require__(4597);
39447
- // EXTERNAL MODULE: ./src/utils/take_first_set.ts
39448
- var take_first_set = __webpack_require__(5278);
39449
39443
  // EXTERNAL MODULE: ./src/utils/resolve_url.ts
39450
39444
  var resolve_url = __webpack_require__(9829);
39451
39445
  ;// CONCATENATED MODULE: ./src/transports/dash/construct_segment_url.ts
@@ -39489,7 +39483,6 @@ function constructSegmentUrl(wantedCdn, segment) {
39489
39483
 
39490
39484
 
39491
39485
 
39492
-
39493
39486
  /**
39494
39487
  * Loads an image segment.
39495
39488
  * @param {Object|null} wantedCdn
@@ -39548,6 +39541,7 @@ function _imageLoader() {
39548
39541
  return _imageLoader.apply(this, arguments);
39549
39542
  }
39550
39543
  function imageParser(loadedSegment, content) {
39544
+ var _a;
39551
39545
  var segment = content.segment,
39552
39546
  period = content.period;
39553
39547
  var data = loadedSegment.data,
@@ -39565,7 +39559,7 @@ function imageParser(loadedSegment, content) {
39565
39559
  if (isChunked) {
39566
39560
  throw new Error("Image data should not be downloaded in chunks");
39567
39561
  }
39568
- var chunkOffset = (0,take_first_set/* default */.Z)(segment.timestampOffset, 0);
39562
+ var chunkOffset = (_a = segment.timestampOffset) !== null && _a !== void 0 ? _a : 0;
39569
39563
  // TODO image Parsing should be more on the buffer side, no?
39570
39564
  if (data === null || features/* default */.Z.imageParser === null) {
39571
39565
  return {
@@ -41067,7 +41061,6 @@ function getEventsOutOfEMSGs(parsedEMSGs, manifestPublishTime) {
41067
41061
 
41068
41062
 
41069
41063
 
41070
-
41071
41064
  /**
41072
41065
  * @param {Object} config
41073
41066
  * @returns {Function}
@@ -41075,7 +41068,7 @@ function getEventsOutOfEMSGs(parsedEMSGs, manifestPublishTime) {
41075
41068
  function generateAudioVideoSegmentParser(_ref) {
41076
41069
  var __priv_patchLastSegmentInSidx = _ref.__priv_patchLastSegmentInSidx;
41077
41070
  return function audioVideoSegmentParser(loadedSegment, content, initTimescale) {
41078
- var _a;
41071
+ var _a, _b;
41079
41072
  var period = content.period,
41080
41073
  adaptation = content.adaptation,
41081
41074
  representation = content.representation,
@@ -41121,7 +41114,7 @@ function generateAudioVideoSegmentParser(_ref) {
41121
41114
  }
41122
41115
  if (!segment.isInit) {
41123
41116
  var chunkInfos = seemsToBeMP4 ? getISOBMFFTimingInfos(chunkData, isChunked, segment, initTimescale) : null; // TODO extract time info from webm
41124
- var chunkOffset = (0,take_first_set/* default */.Z)(segment.timestampOffset, 0);
41117
+ var chunkOffset = (_b = segment.timestampOffset) !== null && _b !== void 0 ? _b : 0;
41125
41118
  if (seemsToBeMP4) {
41126
41119
  var parsedEMSGs = (0,utils/* parseEmsgBoxes */.s9)(chunkData);
41127
41120
  if (parsedEMSGs !== undefined) {
@@ -41465,7 +41458,6 @@ function getPlainTextTrackData(_ref2, textTrackData, isChunked) {
41465
41458
 
41466
41459
 
41467
41460
 
41468
-
41469
41461
  /**
41470
41462
  * Parse TextTrack data when it is embedded in an ISOBMFF file.
41471
41463
  *
@@ -41486,6 +41478,7 @@ function getPlainTextTrackData(_ref2, textTrackData, isChunked) {
41486
41478
  * @returns {Object}
41487
41479
  */
41488
41480
  function parseISOBMFFEmbeddedTextTrack(data, isChunked, content, initTimescale, __priv_patchLastSegmentInSidx) {
41481
+ var _a;
41489
41482
  var period = content.period,
41490
41483
  representation = content.representation,
41491
41484
  segment = content.segment;
@@ -41521,7 +41514,7 @@ function parseISOBMFFEmbeddedTextTrack(data, isChunked, content, initTimescale,
41521
41514
  }
41522
41515
  var chunkInfos = getISOBMFFTimingInfos(chunkBytes, isChunked, segment, initTimescale);
41523
41516
  var chunkData = getISOBMFFEmbeddedTextTrackData(content, chunkBytes, chunkInfos, isChunked);
41524
- var chunkOffset = (0,take_first_set/* default */.Z)(segment.timestampOffset, 0);
41517
+ var chunkOffset = (_a = segment.timestampOffset) !== null && _a !== void 0 ? _a : 0;
41525
41518
  return {
41526
41519
  segmentType: "media",
41527
41520
  chunkData: chunkData,
@@ -42337,8 +42330,6 @@ var object_assign = __webpack_require__(8026);
42337
42330
  var resolve_url = __webpack_require__(9829);
42338
42331
  // EXTERNAL MODULE: ./src/utils/string_parsing.ts
42339
42332
  var string_parsing = __webpack_require__(3635);
42340
- // EXTERNAL MODULE: ./src/utils/take_first_set.ts
42341
- var take_first_set = __webpack_require__(5278);
42342
42333
  // EXTERNAL MODULE: ./src/parsers/containers/isobmff/constants.ts
42343
42334
  var constants = __webpack_require__(2689);
42344
42335
  ;// CONCATENATED MODULE: ./src/parsers/containers/isobmff/create_box.ts
@@ -42781,7 +42772,6 @@ function reduceChildren(root, fn, init) {
42781
42772
 
42782
42773
 
42783
42774
 
42784
-
42785
42775
  /**
42786
42776
  * Default value for the aggressive `mode`.
42787
42777
  * In this mode, segments will be returned even if we're not sure those had time
@@ -42905,7 +42895,7 @@ function createSmoothStreamingParser(parserOptions) {
42905
42895
  bitrate: _bitrate2,
42906
42896
  customAttributes: customAttributes,
42907
42897
  mimeType: _fourCC2 !== undefined ? MIME_TYPES[_fourCC2] : _fourCC2,
42908
- codecPrivateData: (0,take_first_set/* default */.Z)(_codecPrivateData2, "")
42898
+ codecPrivateData: _codecPrivateData2 !== null && _codecPrivateData2 !== void 0 ? _codecPrivateData2 : ""
42909
42899
  };
42910
42900
  }
42911
42901
  default:
@@ -48802,48 +48792,6 @@ function readNullTerminatedString(buffer, offset) {
48802
48792
  }
48803
48793
 
48804
48794
 
48805
- /***/ }),
48806
-
48807
- /***/ 5278:
48808
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
48809
-
48810
- "use strict";
48811
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48812
- /* harmony export */ Z: function() { return /* binding */ takeFirstSet; }
48813
- /* harmony export */ });
48814
- /* harmony import */ var _is_null_or_undefined__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1946);
48815
- /**
48816
- * Copyright 2015 CANAL+ Group
48817
- *
48818
- * Licensed under the Apache License, Version 2.0 (the "License");
48819
- * you may not use this file except in compliance with the License.
48820
- * You may obtain a copy of the License at
48821
- *
48822
- * http://www.apache.org/licenses/LICENSE-2.0
48823
- *
48824
- * Unless required by applicable law or agreed to in writing, software
48825
- * distributed under the License is distributed on an "AS IS" BASIS,
48826
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48827
- * See the License for the specific language governing permissions and
48828
- * limitations under the License.
48829
- */
48830
-
48831
- function takeFirstSet() {
48832
- var i = 0;
48833
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48834
- args[_key] = arguments[_key];
48835
- }
48836
- var len = args.length;
48837
- while (i < len) {
48838
- var arg = args[i];
48839
- if (!(0,_is_null_or_undefined__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(arg)) {
48840
- return arg;
48841
- }
48842
- i++;
48843
- }
48844
- return undefined;
48845
- }
48846
-
48847
48795
  /***/ }),
48848
48796
 
48849
48797
  /***/ 288:
@@ -51423,8 +51371,6 @@ var array_find = __webpack_require__(3274);
51423
51371
  var languages = __webpack_require__(7829);
51424
51372
  // EXTERNAL MODULE: ./src/utils/sorted_list.ts
51425
51373
  var sorted_list = __webpack_require__(3146);
51426
- // EXTERNAL MODULE: ./src/utils/take_first_set.ts
51427
- var take_first_set = __webpack_require__(5278);
51428
51374
  ;// CONCATENATED MODULE: ./src/core/api/tracks_management/track_choice_manager.ts
51429
51375
  /**
51430
51376
  * Copyright 2015 CANAL+ Group
@@ -51452,7 +51398,6 @@ var take_first_set = __webpack_require__(5278);
51452
51398
 
51453
51399
 
51454
51400
 
51455
-
51456
51401
  /**
51457
51402
  * Transform an array of IAudioTrackPreference into an array of
51458
51403
  * INormalizedPreferredAudioTrack to be exploited by the TrackChoiceManager.
@@ -52245,7 +52190,8 @@ function createTextPreferenceMatcher(preferredTextTrack) {
52245
52190
  * @returns {boolean}
52246
52191
  */
52247
52192
  return function matchTextPreference(textAdaptation) {
52248
- return (0,take_first_set/* default */.Z)(textAdaptation.normalizedLanguage, "") === preferredTextTrack.normalized && (preferredTextTrack.closedCaption ? textAdaptation.isClosedCaption === true : textAdaptation.isClosedCaption !== true) && (preferredTextTrack.forced === true ? textAdaptation.isForcedSubtitles === true : textAdaptation.isForcedSubtitles !== true);
52193
+ var _a;
52194
+ return ((_a = textAdaptation.normalizedLanguage) !== null && _a !== void 0 ? _a : "") === preferredTextTrack.normalized && (preferredTextTrack.closedCaption ? textAdaptation.isClosedCaption === true : textAdaptation.isClosedCaption !== true) && (preferredTextTrack.forced === true ? textAdaptation.isForcedSubtitles === true : textAdaptation.isForcedSubtitles !== true);
52249
52195
  };
52250
52196
  }
52251
52197
  /**
@@ -52658,7 +52604,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
52658
52604
  // Workaround to support Firefox autoplay on FF 42.
52659
52605
  // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
52660
52606
  videoElement.preload = "auto";
52661
- _this.version = /* PLAYER_VERSION */"3.32.2-dev.2023102600";
52607
+ _this.version = /* PLAYER_VERSION */"3.32.2-dev.2023110700";
52662
52608
  _this.log = log/* default */.Z;
52663
52609
  _this.state = "STOPPED";
52664
52610
  _this.videoElement = videoElement;
@@ -55072,7 +55018,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
55072
55018
  }]);
55073
55019
  return Player;
55074
55020
  }(event_emitter/* default */.Z);
55075
- Player.version = /* PLAYER_VERSION */"3.32.2-dev.2023102600";
55021
+ Player.version = /* PLAYER_VERSION */"3.32.2-dev.2023110700";
55076
55022
  /* harmony default export */ var public_api = (Player);
55077
55023
  ;// CONCATENATED MODULE: ./src/core/api/index.ts
55078
55024
  /**