shaka-player 4.1.5 → 4.1.7
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/.github/workflows/build-and-test.yaml +11 -6
- package/.github/workflows/compute-incremental-coverage.py +14 -3
- package/.github/workflows/demo-version-index.yaml +1 -1
- package/.github/workflows/nightly-demo.yaml +1 -1
- package/.github/workflows/release-please.yaml +5 -5
- package/.github/workflows/report-incremental-coverage.yaml +1 -1
- package/.github/workflows/selenium-lab-tests.yaml +8 -6
- package/AUTHORS +2 -0
- package/CHANGELOG.md +32 -0
- package/CONTRIBUTORS +2 -0
- package/dist/deps.js +5 -5
- package/dist/locales.js +29 -29
- package/dist/shaka-player.compiled.d.ts +6 -1
- package/dist/shaka-player.compiled.debug.d.ts +6 -1
- package/dist/shaka-player.compiled.debug.externs.js +3 -1
- package/dist/shaka-player.compiled.debug.js +119 -117
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +3 -1
- package/dist/shaka-player.compiled.js +771 -768
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +6 -1
- package/dist/shaka-player.ui.debug.d.ts +6 -1
- package/dist/shaka-player.ui.debug.externs.js +3 -1
- package/dist/shaka-player.ui.debug.js +135 -133
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +3 -1
- package/dist/shaka-player.ui.js +896 -893
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/welcome.md +2 -2
- package/externs/mux.js +3 -0
- package/lib/ads/client_side_ad_manager.js +5 -2
- package/lib/cast/cast_proxy.js +2 -1
- package/lib/cast/cast_receiver.js +19 -5
- package/lib/cast/cast_sender.js +2 -1
- package/lib/cast/cast_utils.js +16 -6
- package/lib/hls/hls_parser.js +27 -9
- package/lib/media/drm_engine.js +7 -6
- package/lib/media/media_source_engine.js +6 -0
- package/lib/media/playhead.js +24 -2
- package/lib/media/streaming_engine.js +3 -12
- package/lib/media/transmuxer.js +6 -0
- package/lib/offline/indexeddb/storage_mechanism.js +24 -0
- package/lib/player.js +24 -11
- package/lib/polyfill/media_capabilities.js +7 -6
- package/lib/text/ttml_text_parser.js +69 -93
- package/lib/text/vtt_text_parser.js +1 -1
- package/lib/util/error.js +7 -0
- package/lib/util/manifest_parser_utils.js +4 -0
- package/lib/util/periods.js +9 -9
- package/lib/util/platform.js +0 -10
- package/lib/util/xml_utils.js +45 -6
- package/package.json +1 -1
- package/roadmap.md +24 -6
- package/test/cast/cast_receiver_integration.js +97 -16
- package/test/cast/cast_receiver_unit.js +17 -12
- package/test/cast/cast_utils_unit.js +1 -0
- package/test/media/media_source_engine_integration.js +31 -0
- package/test/media/playhead_unit.js +41 -0
- package/test/media/streaming_engine_integration.js +13 -0
- package/test/media/streaming_engine_unit.js +36 -23
- package/test/offline/storage_integration.js +30 -0
- package/test/player_unit.js +87 -0
- package/test/test/util/simple_fakes.js +3 -0
- package/test/text/vtt_text_parser_unit.js +23 -1
- package/test/util/periods_unit.js +149 -11
- package/test/util/xml_utils_unit.js +64 -0
- package/ui/controls.js +4 -1
- package/ui/settings_menu.js +11 -2
|
@@ -294,7 +294,7 @@ declare namespace shaka {
|
|
|
294
294
|
* If the player has loaded content, and streaming seen an error, but the
|
|
295
295
|
* could not resume streaming, this will return <code>false</code>.
|
|
296
296
|
*/
|
|
297
|
-
retryStreaming ( ) : boolean ;
|
|
297
|
+
retryStreaming (retryDelaySeconds ? : number ) : boolean ;
|
|
298
298
|
/**
|
|
299
299
|
* Get the range of time (in seconds) that seeking is allowed. If the player
|
|
300
300
|
* has not loaded content, this will return a range from 0 to 0.
|
|
@@ -2703,6 +2703,7 @@ declare namespace shaka.util.Error {
|
|
|
2703
2703
|
HTTP_ERROR = 1002.0 ,
|
|
2704
2704
|
INCONSISTENT_DRM_ACROSS_PERIODS = 4038.0 ,
|
|
2705
2705
|
INDEXED_DB_ERROR = 9001.0 ,
|
|
2706
|
+
INDEXED_DB_INIT_TIMED_OUT = 9017.0 ,
|
|
2706
2707
|
INIT_DATA_TRANSFORM_ERROR = 6016.0 ,
|
|
2707
2708
|
INVALID_HLS_TAG = 4016.0 ,
|
|
2708
2709
|
INVALID_MP4_CEA = 2010.0 ,
|
|
@@ -3649,6 +3650,10 @@ declare namespace muxjs.mp4 {
|
|
|
3649
3650
|
*/
|
|
3650
3651
|
on (type : string , listener : Function | null ) : any ;
|
|
3651
3652
|
push (data : Uint8Array ) : any ;
|
|
3653
|
+
/**
|
|
3654
|
+
* Reset captions.
|
|
3655
|
+
*/
|
|
3656
|
+
resetCaptions ( ) : any ;
|
|
3652
3657
|
setBaseMediaDecodeTime (time : number ) : any ;
|
|
3653
3658
|
}
|
|
3654
3659
|
}
|
|
@@ -294,7 +294,7 @@ declare namespace shaka {
|
|
|
294
294
|
* If the player has loaded content, and streaming seen an error, but the
|
|
295
295
|
* could not resume streaming, this will return <code>false</code>.
|
|
296
296
|
*/
|
|
297
|
-
retryStreaming ( ) : boolean ;
|
|
297
|
+
retryStreaming (retryDelaySeconds ? : number ) : boolean ;
|
|
298
298
|
/**
|
|
299
299
|
* Get the range of time (in seconds) that seeking is allowed. If the player
|
|
300
300
|
* has not loaded content, this will return a range from 0 to 0.
|
|
@@ -2703,6 +2703,7 @@ declare namespace shaka.util.Error {
|
|
|
2703
2703
|
HTTP_ERROR = 1002.0 ,
|
|
2704
2704
|
INCONSISTENT_DRM_ACROSS_PERIODS = 4038.0 ,
|
|
2705
2705
|
INDEXED_DB_ERROR = 9001.0 ,
|
|
2706
|
+
INDEXED_DB_INIT_TIMED_OUT = 9017.0 ,
|
|
2706
2707
|
INIT_DATA_TRANSFORM_ERROR = 6016.0 ,
|
|
2707
2708
|
INVALID_HLS_TAG = 4016.0 ,
|
|
2708
2709
|
INVALID_MP4_CEA = 2010.0 ,
|
|
@@ -3649,6 +3650,10 @@ declare namespace muxjs.mp4 {
|
|
|
3649
3650
|
*/
|
|
3650
3651
|
on (type : string , listener : Function | null ) : any ;
|
|
3651
3652
|
push (data : Uint8Array ) : any ;
|
|
3653
|
+
/**
|
|
3654
|
+
* Reset captions.
|
|
3655
|
+
*/
|
|
3656
|
+
resetCaptions ( ) : any ;
|
|
3652
3657
|
setBaseMediaDecodeTime (time : number ) : any ;
|
|
3653
3658
|
}
|
|
3654
3659
|
}
|
|
@@ -308,6 +308,7 @@ shaka.util.Error.Code = {
|
|
|
308
308
|
'STORAGE_LIMIT_REACHED': 9014,
|
|
309
309
|
'DOWNLOAD_SIZE_CALLBACK_ERROR': 9015,
|
|
310
310
|
'MODIFY_OPERATION_NOT_SUPPORTED': 9016,
|
|
311
|
+
'INDEXED_DB_INIT_TIMED_OUT': 9017,
|
|
311
312
|
'CS_IMA_SDK_MISSING': 10000,
|
|
312
313
|
'CS_AD_MANAGER_NOT_INITIALIZED': 10001,
|
|
313
314
|
'SS_IMA_SDK_MISSING': 10002,
|
|
@@ -2865,9 +2866,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
2865
2866
|
* <p>
|
|
2866
2867
|
* If the player has loaded content, and streaming seen an error, but the
|
|
2867
2868
|
* could not resume streaming, this will return <code>false</code>.
|
|
2869
|
+
* @param {number=} retryDelaySeconds
|
|
2868
2870
|
* @return {boolean}
|
|
2869
2871
|
*/
|
|
2870
|
-
retryStreaming() {}
|
|
2872
|
+
retryStreaming(retryDelaySeconds) {}
|
|
2871
2873
|
/**
|
|
2872
2874
|
* Get the manifest that the player has loaded. If the player has not loaded
|
|
2873
2875
|
* any content, this will return <code>null</code>.
|