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.
- package/dist/locales.js +36 -36
- package/dist/shaka-player.compiled.debug.js +10 -9
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +125 -125
- package/dist/shaka-player.compiled.map +2 -2
- package/dist/shaka-player.ui.debug.js +13 -12
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +120 -120
- package/dist/shaka-player.ui.map +2 -2
- package/externs/shaka/player.js +2 -2
- package/lib/dash/mpd_utils.js +3 -3
- package/lib/media/streaming_engine.js +5 -0
- package/lib/player.js +1 -1
- package/lib/util/manifest_parser_utils.js +1 -0
- package/package.json +1 -1
package/externs/shaka/player.js
CHANGED
|
@@ -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 {
|
|
562
|
-
* <b>DEPRECATED</b>: Use
|
|
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.
|
package/lib/dash/mpd_utils.js
CHANGED
|
@@ -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
|
-
|
|
173
|
-
|
|
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.
|
|
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.
|