rx-player 3.27.1-dev.2022051100 → 3.27.1-dev.2022060300

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 (22) hide show
  1. package/CHANGELOG.md +1 -2
  2. package/README.md +2 -1
  3. package/VERSION +1 -1
  4. package/dist/_esm5.processed/core/api/public_api.js +2 -2
  5. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +1 -3
  6. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +2 -4
  7. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +1 -1
  8. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +6 -6
  9. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -3
  10. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +2 -4
  11. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +0 -2
  12. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +2 -6
  13. package/dist/rx-player.js +14 -23
  14. package/dist/rx-player.min.js +1 -1
  15. package/package.json +1 -1
  16. package/sonar-project.properties +1 -1
  17. package/src/core/api/public_api.ts +2 -2
  18. package/src/core/decrypt/__tests__/__global__/get_license.test.ts +1 -1
  19. package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.ts +2 -8
  20. package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.ts +6 -10
  21. package/src/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.ts +2 -5
  22. package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +2 -11
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## v3.27.1-dev.2022051100 (2022-05-11)
3
+ ## v3.27.1-dev.2022051100 (2022-06-03)
4
4
 
5
5
  ### Bug fixes
6
6
 
@@ -17,7 +17,6 @@
17
17
  - The duration set on the media element is now only relative to the current chosen tracks (it was previously relative to all potential track). This allows to seek later when switching e.g. to a longer video track [#1102]
18
18
  - Errors coming from an HTMLMediaElement now have the browser's error message if it exists [#1112]
19
19
 
20
-
21
20
  ## v3.27.0 (2022-03-31)
22
21
 
23
22
  ### Features
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  <p align="center">
2
- <img src="./doc/static/img/logo.png" />
2
+ <img src="./doc/static/img/logo.png#gh-light-mode-only" alt="RxPlayer's logo"/>
3
+ <img src="./doc/static/img/logo-white.png#gh-dark-mode-only" alt="RxPlayer's logo"/>
3
4
  <br /><br />
4
5
  <a href="https://developers.canal-plus.com/rx-player/doc/api/Overview.html">📖 <b>API documentation</b></a>
5
6
  -
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.27.1-dev.2022051100
1
+ 3.27.1-dev.2022060300
@@ -87,7 +87,7 @@ var Player = /** @class */ (function (_super) {
87
87
  // Workaround to support Firefox autoplay on FF 42.
88
88
  // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
89
89
  videoElement.preload = "auto";
90
- _this.version = /* PLAYER_VERSION */ "3.27.1-dev.2022051100";
90
+ _this.version = /* PLAYER_VERSION */ "3.27.1-dev.2022060300";
91
91
  _this.log = log;
92
92
  _this.state = "STOPPED";
93
93
  _this.videoElement = videoElement;
@@ -2301,5 +2301,5 @@ var Player = /** @class */ (function (_super) {
2301
2301
  };
2302
2302
  return Player;
2303
2303
  }(EventEmitter));
2304
- Player.version = /* PLAYER_VERSION */ "3.27.1-dev.2022051100";
2304
+ Player.version = /* PLAYER_VERSION */ "3.27.1-dev.2022060300";
2305
2305
  export default Player;
@@ -21,8 +21,6 @@ import { IIndexSegment } from "../../../../utils/index_helpers";
21
21
  * first needed.
22
22
  * @param {HTMLCollection} elements - All S nodes constituting the corresponding
23
23
  * SegmentTimeline node.
24
- * @param {number} scaledPeriodStart - Absolute start of the concerned Period,
25
- * in the same scale than the segments found in `elements`.
26
24
  * @returns {Array.<Object>}
27
25
  */
28
- export default function constructTimelineFromElements(elements: HTMLCollection, scaledPeriodStart: number): IIndexSegment[];
26
+ export default function constructTimelineFromElements(elements: HTMLCollection): IIndexSegment[];
@@ -22,11 +22,9 @@ import parseSElement from "./parse_s_element";
22
22
  * first needed.
23
23
  * @param {HTMLCollection} elements - All S nodes constituting the corresponding
24
24
  * SegmentTimeline node.
25
- * @param {number} scaledPeriodStart - Absolute start of the concerned Period,
26
- * in the same scale than the segments found in `elements`.
27
25
  * @returns {Array.<Object>}
28
26
  */
29
- export default function constructTimelineFromElements(elements, scaledPeriodStart) {
27
+ export default function constructTimelineFromElements(elements) {
30
28
  var initialTimeline = [];
31
29
  for (var i = 0; i < elements.length; i++) {
32
30
  initialTimeline.push(parseSElement(elements[i]));
@@ -40,7 +38,7 @@ export default function constructTimelineFromElements(elements, scaledPeriodStar
40
38
  var nextItem = initialTimeline[i + 1] === undefined ?
41
39
  null :
42
40
  initialTimeline[i + 1];
43
- var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem, scaledPeriodStart);
41
+ var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem);
44
42
  if (timelineElement !== null) {
45
43
  timeline.push(timelineElement);
46
44
  }
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { IIndexSegment } from "../../../../utils/index_helpers";
17
- export default function constructTimelineFromPreviousTimeline(newElements: HTMLCollection, prevTimeline: IIndexSegment[], scaledPeriodStart: number): IIndexSegment[];
17
+ export default function constructTimelineFromPreviousTimeline(newElements: HTMLCollection, prevTimeline: IIndexSegment[]): IIndexSegment[];
@@ -18,13 +18,13 @@ import constructTimelineFromElements from "./construct_timeline_from_elements";
18
18
  import convertElementToIndexSegment from "./convert_element_to_index_segment";
19
19
  import findFirstCommonStartTime from "./find_first_common_start_time";
20
20
  import parseSElement from "./parse_s_element";
21
- export default function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaledPeriodStart) {
21
+ export default function constructTimelineFromPreviousTimeline(newElements, prevTimeline) {
22
22
  var _a;
23
23
  // Find first index in both timeline where a common segment is found.
24
24
  var commonStartInfo = findFirstCommonStartTime(prevTimeline, newElements);
25
25
  if (commonStartInfo === null) {
26
26
  log.warn("DASH: Cannot perform \"based\" update. Common segment not found.");
27
- return constructTimelineFromElements(newElements, scaledPeriodStart);
27
+ return constructTimelineFromElements(newElements);
28
28
  }
29
29
  var prevSegmentsIdx = commonStartInfo.prevSegmentsIdx, newElementsIdx = commonStartInfo.newElementsIdx, repeatNumberInPrevSegments = commonStartInfo.repeatNumberInPrevSegments, repeatNumberInNewElements = commonStartInfo.repeatNumberInNewElements;
30
30
  /** Guess of the number of elements in common. */
@@ -32,7 +32,7 @@ export default function constructTimelineFromPreviousTimeline(newElements, prevT
32
32
  var lastCommonEltNewEltsIdx = numberCommonEltGuess + newElementsIdx - 1;
33
33
  if (lastCommonEltNewEltsIdx >= newElements.length) {
34
34
  log.info("DASH: Cannot perform \"based\" update. New timeline too short");
35
- return constructTimelineFromElements(newElements, scaledPeriodStart);
35
+ return constructTimelineFromElements(newElements);
36
36
  }
37
37
  // Remove elements which are not available anymore
38
38
  var newTimeline = prevTimeline.slice(prevSegmentsIdx);
@@ -45,7 +45,7 @@ export default function constructTimelineFromPreviousTimeline(newElements, prevT
45
45
  if (repeatNumberInNewElements > 0 && newElementsIdx !== 0) {
46
46
  log.info("DASH: Cannot perform \"based\" update. " +
47
47
  "The new timeline has a different form.");
48
- return constructTimelineFromElements(newElements, scaledPeriodStart);
48
+ return constructTimelineFromElements(newElements);
49
49
  }
50
50
  var prevLastElement = newTimeline[newTimeline.length - 1];
51
51
  var newCommonElt = parseSElement(newElements[lastCommonEltNewEltsIdx]);
@@ -55,7 +55,7 @@ export default function constructTimelineFromPreviousTimeline(newElements, prevT
55
55
  prevLastElement.repeatCount > newRepeatCountOffseted) {
56
56
  log.info("DASH: Cannot perform \"based\" update. " +
57
57
  "The new timeline has a different form at the beginning.");
58
- return constructTimelineFromElements(newElements, scaledPeriodStart);
58
+ return constructTimelineFromElements(newElements);
59
59
  }
60
60
  if (newCommonElt.repeatCount !== undefined &&
61
61
  newCommonElt.repeatCount > prevLastElement.repeatCount) {
@@ -74,7 +74,7 @@ export default function constructTimelineFromPreviousTimeline(newElements, prevT
74
74
  var nextItem = items[i + 1] === undefined ?
75
75
  null :
76
76
  items[i + 1];
77
- var timelineElement = convertElementToIndexSegment(item, previousItem, nextItem, scaledPeriodStart);
77
+ var timelineElement = convertElementToIndexSegment(item, previousItem, nextItem);
78
78
  if (timelineElement !== null) {
79
79
  newEltsToPush.push(timelineElement);
80
80
  }
@@ -24,8 +24,6 @@ import { IIndexSegment } from "../../../../utils/index_helpers";
24
24
  * segment.
25
25
  * @param {Object|null} nextItem - the `S` node coming next. If `null`, we're
26
26
  * talking about the last segment.
27
- * @param {number} timelineStart - Absolute start for the timeline. In the same
28
- * timescale than the given `S` nodes.
29
27
  * @returns {Object|null}
30
28
  */
31
29
  export default function convertElementsToIndexSegment(item: {
@@ -36,4 +34,4 @@ export default function convertElementsToIndexSegment(item: {
36
34
  start?: number;
37
35
  repeatCount?: number;
38
36
  duration?: number;
39
- } | null, timelineStart: number): IIndexSegment | null;
37
+ } | null): IIndexSegment | null;
@@ -25,17 +25,15 @@ import isNullOrUndefined from "../../../../../../utils/is_null_or_undefined";
25
25
  * segment.
26
26
  * @param {Object|null} nextItem - the `S` node coming next. If `null`, we're
27
27
  * talking about the last segment.
28
- * @param {number} timelineStart - Absolute start for the timeline. In the same
29
- * timescale than the given `S` nodes.
30
28
  * @returns {Object|null}
31
29
  */
32
- export default function convertElementsToIndexSegment(item, previousItem, nextItem, timelineStart) {
30
+ export default function convertElementsToIndexSegment(item, previousItem, nextItem) {
33
31
  var start = item.start;
34
32
  var duration = item.duration;
35
33
  var repeatCount = item.repeatCount;
36
34
  if (start === undefined) {
37
35
  if (previousItem === null) {
38
- start = timelineStart;
36
+ start = 0;
39
37
  }
40
38
  else if (!isNullOrUndefined(previousItem.duration)) {
41
39
  start = previousItem.start +
@@ -166,8 +166,6 @@ export default class TimelineRepresentationIndex implements IRepresentationIndex
166
166
  private _lastUpdate;
167
167
  /** Absolute start of the period, timescaled and converted to index time. */
168
168
  private _scaledPeriodStart;
169
- /** Actual un-scaled start of the Period as indicated in the MPD. */
170
- private _periodStart;
171
169
  /** Absolute end of the period, timescaled and converted to index time. */
172
170
  private _scaledPeriodEnd;
173
171
  /** Whether this RepresentationIndex can change over time. */
@@ -73,7 +73,6 @@ var TimelineRepresentationIndex = /** @class */ (function () {
73
73
  mediaURLs: createIndexURLs(urlSources, index.media, representationId, representationBitrate),
74
74
  startNumber: index.startNumber,
75
75
  timeline: (_c = index.timeline) !== null && _c !== void 0 ? _c : null, timescale: timescale };
76
- this._periodStart = periodStart;
77
76
  this._scaledPeriodStart = toIndexTime(periodStart, this._index);
78
77
  this._scaledPeriodEnd = periodEnd === undefined ? undefined :
79
78
  toIndexTime(periodEnd, this._index);
@@ -202,7 +201,6 @@ var TimelineRepresentationIndex = /** @class */ (function () {
202
201
  this._index = newIndex._index;
203
202
  this._isDynamic = newIndex._isDynamic;
204
203
  this._scaledPeriodStart = newIndex._scaledPeriodStart;
205
- this._periodStart = newIndex._periodStart;
206
204
  this._scaledPeriodEnd = newIndex._scaledPeriodEnd;
207
205
  this._lastUpdate = newIndex._lastUpdate;
208
206
  this._manifestBoundsCalculator = newIndex._manifestBoundsCalculator;
@@ -226,7 +224,6 @@ var TimelineRepresentationIndex = /** @class */ (function () {
226
224
  }
227
225
  this._isDynamic = newIndex._isDynamic;
228
226
  this._scaledPeriodStart = newIndex._scaledPeriodStart;
229
- this._periodStart = newIndex._periodStart;
230
227
  this._scaledPeriodEnd = newIndex._scaledPeriodEnd;
231
228
  this._lastUpdate = newIndex._lastUpdate;
232
229
  this._isLastPeriod = newIndex._isLastPeriod;
@@ -333,12 +330,11 @@ var TimelineRepresentationIndex = /** @class */ (function () {
333
330
  }
334
331
  var newElements = this._parseTimeline();
335
332
  this._parseTimeline = null; // Free memory
336
- var actualPeriodStart = this._periodStart * this._index.timescale;
337
333
  var MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY = config.getCurrent().MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY;
338
334
  if (this._unsafelyBaseOnPreviousIndex === null ||
339
335
  newElements.length < MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY) {
340
336
  // Just completely parse the current timeline
341
- return constructTimelineFromElements(newElements, actualPeriodStart);
337
+ return constructTimelineFromElements(newElements);
342
338
  }
343
339
  // Construct previously parsed timeline if not already done
344
340
  var prevTimeline;
@@ -350,7 +346,7 @@ var TimelineRepresentationIndex = /** @class */ (function () {
350
346
  prevTimeline = this._unsafelyBaseOnPreviousIndex._index.timeline;
351
347
  }
352
348
  this._unsafelyBaseOnPreviousIndex = null; // Free memory
353
- return constructTimelineFromPreviousTimeline(newElements, prevTimeline, actualPeriodStart);
349
+ return constructTimelineFromPreviousTimeline(newElements, prevTimeline);
354
350
  };
355
351
  return TimelineRepresentationIndex;
356
352
  }());
package/dist/rx-player.js CHANGED
@@ -20991,19 +20991,17 @@ function isPeriodFulfilled(timescale, lastSegmentEnd, periodEnd) {
20991
20991
  * segment.
20992
20992
  * @param {Object|null} nextItem - the `S` node coming next. If `null`, we're
20993
20993
  * talking about the last segment.
20994
- * @param {number} timelineStart - Absolute start for the timeline. In the same
20995
- * timescale than the given `S` nodes.
20996
20994
  * @returns {Object|null}
20997
20995
  */
20998
20996
 
20999
- function convertElementsToIndexSegment(item, previousItem, nextItem, timelineStart) {
20997
+ function convertElementsToIndexSegment(item, previousItem, nextItem) {
21000
20998
  var start = item.start;
21001
20999
  var duration = item.duration;
21002
21000
  var repeatCount = item.repeatCount;
21003
21001
 
21004
21002
  if (start === undefined) {
21005
21003
  if (previousItem === null) {
21006
- start = timelineStart;
21004
+ start = 0;
21007
21005
  } else if (!(0,is_null_or_undefined/* default */.Z)(previousItem.duration)) {
21008
21006
  start = previousItem.start + previousItem.duration * (previousItem.repeatCount + 1);
21009
21007
  }
@@ -21116,12 +21114,10 @@ function parseSElement(root) {
21116
21114
  * first needed.
21117
21115
  * @param {HTMLCollection} elements - All S nodes constituting the corresponding
21118
21116
  * SegmentTimeline node.
21119
- * @param {number} scaledPeriodStart - Absolute start of the concerned Period,
21120
- * in the same scale than the segments found in `elements`.
21121
21117
  * @returns {Array.<Object>}
21122
21118
  */
21123
21119
 
21124
- function constructTimelineFromElements(elements, scaledPeriodStart) {
21120
+ function constructTimelineFromElements(elements) {
21125
21121
  var initialTimeline = [];
21126
21122
 
21127
21123
  for (var i = 0; i < elements.length; i++) {
@@ -21134,7 +21130,7 @@ function constructTimelineFromElements(elements, scaledPeriodStart) {
21134
21130
  var item = initialTimeline[_i];
21135
21131
  var previousItem = timeline[timeline.length - 1] === undefined ? null : timeline[timeline.length - 1];
21136
21132
  var nextItem = initialTimeline[_i + 1] === undefined ? null : initialTimeline[_i + 1];
21137
- var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem, scaledPeriodStart);
21133
+ var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem);
21138
21134
 
21139
21135
  if (timelineElement !== null) {
21140
21136
  timeline.push(timelineElement);
@@ -21319,7 +21315,7 @@ function findFirstCommonStartTime(prevTimeline, newElements) {
21319
21315
 
21320
21316
 
21321
21317
 
21322
- function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaledPeriodStart) {
21318
+ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) {
21323
21319
  var _a; // Find first index in both timeline where a common segment is found.
21324
21320
 
21325
21321
 
@@ -21327,7 +21323,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaled
21327
21323
 
21328
21324
  if (commonStartInfo === null) {
21329
21325
  log/* default.warn */.Z.warn("DASH: Cannot perform \"based\" update. Common segment not found.");
21330
- return constructTimelineFromElements(newElements, scaledPeriodStart);
21326
+ return constructTimelineFromElements(newElements);
21331
21327
  }
21332
21328
 
21333
21329
  var prevSegmentsIdx = commonStartInfo.prevSegmentsIdx,
@@ -21341,7 +21337,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaled
21341
21337
 
21342
21338
  if (lastCommonEltNewEltsIdx >= newElements.length) {
21343
21339
  log/* default.info */.Z.info("DASH: Cannot perform \"based\" update. New timeline too short");
21344
- return constructTimelineFromElements(newElements, scaledPeriodStart);
21340
+ return constructTimelineFromElements(newElements);
21345
21341
  } // Remove elements which are not available anymore
21346
21342
 
21347
21343
 
@@ -21355,7 +21351,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaled
21355
21351
 
21356
21352
  if (repeatNumberInNewElements > 0 && newElementsIdx !== 0) {
21357
21353
  log/* default.info */.Z.info("DASH: Cannot perform \"based\" update. " + "The new timeline has a different form.");
21358
- return constructTimelineFromElements(newElements, scaledPeriodStart);
21354
+ return constructTimelineFromElements(newElements);
21359
21355
  }
21360
21356
 
21361
21357
  var prevLastElement = newTimeline[newTimeline.length - 1];
@@ -21364,7 +21360,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaled
21364
21360
 
21365
21361
  if (newCommonElt.duration !== prevLastElement.duration || prevLastElement.repeatCount > newRepeatCountOffseted) {
21366
21362
  log/* default.info */.Z.info("DASH: Cannot perform \"based\" update. " + "The new timeline has a different form at the beginning.");
21367
- return constructTimelineFromElements(newElements, scaledPeriodStart);
21363
+ return constructTimelineFromElements(newElements);
21368
21364
  }
21369
21365
 
21370
21366
  if (newCommonElt.repeatCount !== undefined && newCommonElt.repeatCount > prevLastElement.repeatCount) {
@@ -21382,7 +21378,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline, scaled
21382
21378
  var item = items[_i];
21383
21379
  var previousItem = newEltsToPush[newEltsToPush.length - 1] === undefined ? prevLastElement : newEltsToPush[newEltsToPush.length - 1];
21384
21380
  var nextItem = items[_i + 1] === undefined ? null : items[_i + 1];
21385
- var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem, scaledPeriodStart);
21381
+ var timelineElement = convertElementsToIndexSegment(item, previousItem, nextItem);
21386
21382
 
21387
21383
  if (timelineElement !== null) {
21388
21384
  newEltsToPush.push(timelineElement);
@@ -21478,7 +21474,6 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () {
21478
21474
  timeline: (_c = index.timeline) !== null && _c !== void 0 ? _c : null,
21479
21475
  timescale: timescale
21480
21476
  };
21481
- this._periodStart = periodStart;
21482
21477
  this._scaledPeriodStart = (0,index_helpers/* toIndexTime */.gT)(periodStart, this._index);
21483
21478
  this._scaledPeriodEnd = periodEnd === undefined ? undefined : (0,index_helpers/* toIndexTime */.gT)(periodEnd, this._index);
21484
21479
  }
@@ -21655,7 +21650,6 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () {
21655
21650
  this._index = newIndex._index;
21656
21651
  this._isDynamic = newIndex._isDynamic;
21657
21652
  this._scaledPeriodStart = newIndex._scaledPeriodStart;
21658
- this._periodStart = newIndex._periodStart;
21659
21653
  this._scaledPeriodEnd = newIndex._scaledPeriodEnd;
21660
21654
  this._lastUpdate = newIndex._lastUpdate;
21661
21655
  this._manifestBoundsCalculator = newIndex._manifestBoundsCalculator;
@@ -21685,7 +21679,6 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () {
21685
21679
 
21686
21680
  this._isDynamic = newIndex._isDynamic;
21687
21681
  this._scaledPeriodStart = newIndex._scaledPeriodStart;
21688
- this._periodStart = newIndex._periodStart;
21689
21682
  this._scaledPeriodEnd = newIndex._scaledPeriodEnd;
21690
21683
  this._lastUpdate = newIndex._lastUpdate;
21691
21684
  this._isLastPeriod = newIndex._isLastPeriod;
@@ -21816,14 +21809,12 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () {
21816
21809
 
21817
21810
  this._parseTimeline = null; // Free memory
21818
21811
 
21819
- var actualPeriodStart = this._periodStart * this._index.timescale;
21820
-
21821
21812
  var _config$getCurrent = config/* default.getCurrent */.Z.getCurrent(),
21822
21813
  MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY = _config$getCurrent.MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY;
21823
21814
 
21824
21815
  if (this._unsafelyBaseOnPreviousIndex === null || newElements.length < MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY) {
21825
21816
  // Just completely parse the current timeline
21826
- return constructTimelineFromElements(newElements, actualPeriodStart);
21817
+ return constructTimelineFromElements(newElements);
21827
21818
  } // Construct previously parsed timeline if not already done
21828
21819
 
21829
21820
 
@@ -21838,7 +21829,7 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () {
21838
21829
 
21839
21830
  this._unsafelyBaseOnPreviousIndex = null; // Free memory
21840
21831
 
21841
- return constructTimelineFromPreviousTimeline(newElements, prevTimeline, actualPeriodStart);
21832
+ return constructTimelineFromPreviousTimeline(newElements, prevTimeline);
21842
21833
  };
21843
21834
 
21844
21835
  return TimelineRepresentationIndex;
@@ -61044,7 +61035,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
61044
61035
  videoElement.preload = "auto";
61045
61036
  _this.version =
61046
61037
  /* PLAYER_VERSION */
61047
- "3.27.1-dev.2022051100";
61038
+ "3.27.1-dev.2022060300";
61048
61039
  _this.log = log/* default */.Z;
61049
61040
  _this.state = "STOPPED";
61050
61041
  _this.videoElement = videoElement;
@@ -63877,7 +63868,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) {
63877
63868
 
63878
63869
  Player.version =
63879
63870
  /* PLAYER_VERSION */
63880
- "3.27.1-dev.2022051100";
63871
+ "3.27.1-dev.2022060300";
63881
63872
  /* harmony default export */ var public_api = (Player);
63882
63873
  ;// CONCATENATED MODULE: ./src/core/api/index.ts
63883
63874
  /**