shaka-player 4.9.30 → 4.9.32
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/.eslintrc.js +1 -0
- package/AUTHORS +2 -0
- package/CONTRIBUTORS +2 -0
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +2 -2
- package/dist/locales.js +33 -33
- package/dist/shaka-player.compiled.d.ts +8 -7
- package/dist/shaka-player.compiled.debug.d.ts +8 -7
- package/dist/shaka-player.compiled.debug.externs.js +3 -0
- package/dist/shaka-player.compiled.debug.js +264 -260
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +3 -0
- package/dist/shaka-player.compiled.js +1214 -1212
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +8 -7
- package/dist/shaka-player.ui.debug.d.ts +8 -7
- package/dist/shaka-player.ui.debug.externs.js +3 -0
- package/dist/shaka-player.ui.debug.js +290 -285
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +3 -0
- package/dist/shaka-player.ui.js +1417 -1414
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/abortable.js +36 -36
- package/lib/dash/segment_template.js +19 -2
- package/lib/hls/hls_parser.js +1 -1
- package/lib/media/adaptation_set_criteria.js +8 -1
- package/lib/media/content_workarounds.js +2 -1
- package/lib/media/drm_engine.js +10 -115
- package/lib/media/media_source_engine.js +99 -36
- package/lib/media/preload_manager.js +6 -1
- package/lib/media/segment_index.js +20 -0
- package/lib/media/segment_prefetch.js +7 -0
- package/lib/media/segment_reference.js +1 -1
- package/lib/media/streaming_engine.js +16 -13
- package/lib/mss/mss_parser.js +6 -0
- package/lib/net/networking_engine.js +3 -3
- package/lib/player.js +16 -2
- package/lib/polyfill/media_capabilities.js +48 -9
- package/lib/polyfill/mediasource.js +12 -0
- package/lib/text/ui_text_displayer.js +8 -0
- package/lib/text/vtt_text_parser.js +2 -8
- package/lib/util/abortable_operation.js +7 -5
- package/lib/util/mp4_generator.js +1 -1
- package/lib/util/platform.js +22 -11
- package/package.json +2 -2
- package/ui/controls.js +2 -2
- package/ui/less/containers.less +8 -0
- package/ui/remote_button.js +42 -17
- package/ui/statistics_button.js +0 -2
|
@@ -1363,6 +1363,7 @@ declare namespace shaka.media {
|
|
|
1363
1363
|
current ( ) : shaka.media.SegmentReference | null ;
|
|
1364
1364
|
currentPosition ( ) : number ;
|
|
1365
1365
|
next ( ) : any ;
|
|
1366
|
+
resetToLastIndependent ( ) : any ;
|
|
1366
1367
|
setReverse (reverse : boolean ) : any ;
|
|
1367
1368
|
}
|
|
1368
1369
|
}
|
|
@@ -4312,6 +4313,13 @@ declare namespace shaka.extern {
|
|
|
4312
4313
|
* whereas aborting only means that further work is stopped.
|
|
4313
4314
|
*/
|
|
4314
4315
|
interface IAbortableOperation < T > {
|
|
4316
|
+
/**
|
|
4317
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
4318
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
4319
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4320
|
+
* object using the error code OPERATION_ABORTED.
|
|
4321
|
+
*/
|
|
4322
|
+
promise : Promise < T > ;
|
|
4315
4323
|
/**
|
|
4316
4324
|
* Can be called by anyone holding this object to abort the underlying
|
|
4317
4325
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -4321,13 +4329,6 @@ declare namespace shaka.extern {
|
|
|
4321
4329
|
*/
|
|
4322
4330
|
abort ( ) : Promise < any > ;
|
|
4323
4331
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
4324
|
-
/**
|
|
4325
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
4326
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
4327
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4328
|
-
* object using the error code OPERATION_ABORTED.
|
|
4329
|
-
*/
|
|
4330
|
-
promise : Promise < T > ;
|
|
4331
4332
|
}
|
|
4332
4333
|
}
|
|
4333
4334
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -1363,6 +1363,7 @@ declare namespace shaka.media {
|
|
|
1363
1363
|
current ( ) : shaka.media.SegmentReference | null ;
|
|
1364
1364
|
currentPosition ( ) : number ;
|
|
1365
1365
|
next ( ) : any ;
|
|
1366
|
+
resetToLastIndependent ( ) : any ;
|
|
1366
1367
|
setReverse (reverse : boolean ) : any ;
|
|
1367
1368
|
}
|
|
1368
1369
|
}
|
|
@@ -4312,6 +4313,13 @@ declare namespace shaka.extern {
|
|
|
4312
4313
|
* whereas aborting only means that further work is stopped.
|
|
4313
4314
|
*/
|
|
4314
4315
|
interface IAbortableOperation < T > {
|
|
4316
|
+
/**
|
|
4317
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
4318
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
4319
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4320
|
+
* object using the error code OPERATION_ABORTED.
|
|
4321
|
+
*/
|
|
4322
|
+
promise : Promise < T > ;
|
|
4315
4323
|
/**
|
|
4316
4324
|
* Can be called by anyone holding this object to abort the underlying
|
|
4317
4325
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -4321,13 +4329,6 @@ declare namespace shaka.extern {
|
|
|
4321
4329
|
*/
|
|
4322
4330
|
abort ( ) : Promise < any > ;
|
|
4323
4331
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
4324
|
-
/**
|
|
4325
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
4326
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
4327
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4328
|
-
* object using the error code OPERATION_ABORTED.
|
|
4329
|
-
*/
|
|
4330
|
-
promise : Promise < T > ;
|
|
4331
4332
|
}
|
|
4332
4333
|
}
|
|
4333
4334
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|