shaka-player 4.8.18 → 4.8.19

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.
@@ -558,8 +558,8 @@ shaka.extern.MetadataFrame;
558
558
  * The presentation time (in seconds) that the region should end.
559
559
  * @property {string} id
560
560
  * Specifies an identifier for this instance of the region.
561
- * @property {Elment} eventElement
562
- * <b>DEPRECATED</b>: Use eventElement instead.
561
+ * @property {Element} eventElement
562
+ * <b>DEPRECATED</b>: Use eventNode instead.
563
563
  * The XML element that defines the Event.
564
564
  * @property {?shaka.extern.xml.Node} eventNode
565
565
  * The XML element that defines the Event.
@@ -168,9 +168,9 @@ shaka.dash.MpdUtils = class {
168
168
 
169
169
  if (!d) {
170
170
  shaka.log.warning(
171
- '"S" element must have a duration:',
172
- 'ignoring the remaining "S" elements.', timePoint);
173
- return timeline;
171
+ '"S" element must have a duration: ignoring this element.',
172
+ timePoint);
173
+ continue;
174
174
  }
175
175
 
176
176
  let startTime = t != null ? t : lastEndTime;
@@ -157,6 +157,10 @@ shaka.media.StreamingEngine = class {
157
157
  for (const state of this.mediaStates_.values()) {
158
158
  this.cancelUpdate_(state);
159
159
  aborts.push(this.abortOperations_(state));
160
+ if (state.segmentPrefetch) {
161
+ state.segmentPrefetch.clearAll();
162
+ state.segmentPrefetch = null;
163
+ }
160
164
  }
161
165
  for (const prefetch of this.audioPrefetchMap_.values()) {
162
166
  prefetch.clearAll();
@@ -244,6 +248,7 @@ shaka.media.StreamingEngine = class {
244
248
  if (!(config.segmentPrefetchLimit > 0)) {
245
249
  // ResetLimit is still needed in this case,
246
250
  // to abort existing prefetch operations.
251
+ state.segmentPrefetch.clearAll();
247
252
  state.segmentPrefetch = null;
248
253
  }
249
254
  } else if (config.segmentPrefetchLimit > 0) {
package/lib/player.js CHANGED
@@ -7246,7 +7246,7 @@ shaka.Player.TYPICAL_BUFFERING_THRESHOLD_ = 0.5;
7246
7246
  * @export
7247
7247
  */
7248
7248
  // eslint-disable-next-line no-useless-concat
7249
- shaka.Player.version = 'v4.8.18' + '-uncompiled'; // x-release-please-version
7249
+ shaka.Player.version = 'v4.8.19' + '-uncompiled'; // x-release-please-version
7250
7250
 
7251
7251
  // Initialize the deprecation system using the version string we just set
7252
7252
  // on the player.
@@ -298,6 +298,7 @@ shaka.util.ManifestParserUtils.AUDIO_CODEC_REGEXPS_ = [
298
298
  /^ac-4/,
299
299
  /^dts[cex]$/, // DTS Digital Surround (dtsc), DTS Express (dtse), DTS:X (dtsx)
300
300
  /^iamf/,
301
+ /^mhm[12]/, // MPEG-H Audio LC
301
302
  ];
302
303
 
303
304
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shaka-player",
3
3
  "description": "DASH/EME video player library",
4
- "version": "4.8.18",
4
+ "version": "4.8.19",
5
5
  "homepage": "https://github.com/shaka-project/shaka-player",
6
6
  "author": "Google",
7
7
  "maintainers": [