shaka-player 3.2.13 → 3.2.15
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 +9 -1
- package/.github/workflows/nightly-demo.yaml +1 -1
- package/.github/workflows/release-please.yaml +4 -4
- package/.github/workflows/report-incremental-coverage.yaml +1 -1
- package/.github/workflows/selenium-lab-tests.yaml +8 -6
- package/CHANGELOG.md +24 -0
- package/dist/deps.js +4 -4
- package/dist/locales.js +31 -31
- package/dist/shaka-player.compiled.d.ts +2 -1
- package/dist/shaka-player.compiled.debug.d.ts +2 -1
- package/dist/shaka-player.compiled.debug.externs.js +3 -1
- package/dist/shaka-player.compiled.debug.js +102 -100
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +3 -1
- package/dist/shaka-player.compiled.js +703 -701
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +2 -1
- package/dist/shaka-player.ui.debug.d.ts +2 -1
- package/dist/shaka-player.ui.debug.externs.js +3 -1
- package/dist/shaka-player.ui.debug.js +220 -218
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +3 -1
- package/dist/shaka-player.ui.js +816 -814
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/welcome.md +2 -2
- 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 +1 -0
- package/lib/media/drm_engine.js +4 -2
- package/lib/media/playhead.js +23 -1
- package/lib/media/streaming_engine.js +3 -12
- package/lib/offline/indexeddb/storage_mechanism.js +24 -0
- package/lib/player.js +24 -11
- package/lib/polyfill/media_capabilities.js +1 -0
- package/lib/text/ttml_text_parser.js +69 -93
- 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/xml_utils.js +45 -6
- package/package.json +1 -1
- 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/playhead_unit.js +41 -0
- package/test/media/streaming_engine_integration.js +13 -0
- package/test/media/streaming_engine_unit.js +23 -8
- 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/util/periods_unit.js +149 -11
- package/test/util/xml_utils_unit.js +64 -0
- package/ui/controls.js +4 -1
|
@@ -301,7 +301,7 @@ declare namespace shaka {
|
|
|
301
301
|
* If the player has loaded content, and streaming seen an error, but the
|
|
302
302
|
* could not resume streaming, this will return <code>false</code>.
|
|
303
303
|
*/
|
|
304
|
-
retryStreaming ( ) : boolean ;
|
|
304
|
+
retryStreaming (retryDelaySeconds ? : number ) : boolean ;
|
|
305
305
|
/**
|
|
306
306
|
* Get the range of time (in seconds) that seeking is allowed. If the player
|
|
307
307
|
* has not loaded content, this will return a range from 0 to 0.
|
|
@@ -2659,6 +2659,7 @@ declare namespace shaka.util.Error {
|
|
|
2659
2659
|
HTTP_ERROR = 1002.0 ,
|
|
2660
2660
|
INCONSISTENT_DRM_ACROSS_PERIODS = 4038.0 ,
|
|
2661
2661
|
INDEXED_DB_ERROR = 9001.0 ,
|
|
2662
|
+
INDEXED_DB_INIT_TIMED_OUT = 9017.0 ,
|
|
2662
2663
|
INIT_DATA_TRANSFORM_ERROR = 6016.0 ,
|
|
2663
2664
|
INVALID_HLS_TAG = 4016.0 ,
|
|
2664
2665
|
INVALID_MP4_CEA = 2010.0 ,
|
|
@@ -301,7 +301,7 @@ declare namespace shaka {
|
|
|
301
301
|
* If the player has loaded content, and streaming seen an error, but the
|
|
302
302
|
* could not resume streaming, this will return <code>false</code>.
|
|
303
303
|
*/
|
|
304
|
-
retryStreaming ( ) : boolean ;
|
|
304
|
+
retryStreaming (retryDelaySeconds ? : number ) : boolean ;
|
|
305
305
|
/**
|
|
306
306
|
* Get the range of time (in seconds) that seeking is allowed. If the player
|
|
307
307
|
* has not loaded content, this will return a range from 0 to 0.
|
|
@@ -2659,6 +2659,7 @@ declare namespace shaka.util.Error {
|
|
|
2659
2659
|
HTTP_ERROR = 1002.0 ,
|
|
2660
2660
|
INCONSISTENT_DRM_ACROSS_PERIODS = 4038.0 ,
|
|
2661
2661
|
INDEXED_DB_ERROR = 9001.0 ,
|
|
2662
|
+
INDEXED_DB_INIT_TIMED_OUT = 9017.0 ,
|
|
2662
2663
|
INIT_DATA_TRANSFORM_ERROR = 6016.0 ,
|
|
2663
2664
|
INVALID_HLS_TAG = 4016.0 ,
|
|
2664
2665
|
INVALID_MP4_CEA = 2010.0 ,
|
|
@@ -305,6 +305,7 @@ shaka.util.Error.Code = {
|
|
|
305
305
|
'MISSING_STORAGE_CELL': 9013,
|
|
306
306
|
'STORAGE_LIMIT_REACHED': 9014,
|
|
307
307
|
'DOWNLOAD_SIZE_CALLBACK_ERROR': 9015,
|
|
308
|
+
'INDEXED_DB_INIT_TIMED_OUT': 9017,
|
|
308
309
|
'CS_IMA_SDK_MISSING': 10000,
|
|
309
310
|
'CS_AD_MANAGER_NOT_INITIALIZED': 10001,
|
|
310
311
|
'SS_IMA_SDK_MISSING': 10002,
|
|
@@ -2673,9 +2674,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
2673
2674
|
* <p>
|
|
2674
2675
|
* If the player has loaded content, and streaming seen an error, but the
|
|
2675
2676
|
* could not resume streaming, this will return <code>false</code>.
|
|
2677
|
+
* @param {number=} retryDelaySeconds
|
|
2676
2678
|
* @return {boolean}
|
|
2677
2679
|
*/
|
|
2678
|
-
retryStreaming() {}
|
|
2680
|
+
retryStreaming(retryDelaySeconds) {}
|
|
2679
2681
|
/**
|
|
2680
2682
|
* Get the manifest that the player has loaded. If the player has not loaded
|
|
2681
2683
|
* any content, this will return <code>null</code>.
|