shaka-player 4.1.4 → 4.1.6
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 +42 -22
- package/.github/workflows/compute-incremental-coverage.py +14 -3
- package/.github/workflows/custom-actions/set-commit-status/action.yaml +1 -5
- package/.github/workflows/deflake.yaml +28 -0
- 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 +21 -10
- package/AUTHORS +3 -0
- package/CHANGELOG.md +35 -0
- package/CONTRIBUTORS +3 -0
- package/demo/common/message_ids.js +1 -0
- package/demo/config.js +3 -1
- package/demo/locales/en.json +1 -0
- package/demo/locales/source.json +4 -0
- package/dist/demo.compiled.debug.js +6 -6
- package/dist/demo.compiled.debug.map +2 -2
- package/dist/demo.compiled.js +6 -6
- package/dist/demo.compiled.map +2 -2
- package/dist/deps.js +3 -3
- package/dist/locales.js +31 -31
- package/dist/receiver.compiled.debug.js +3 -3
- package/dist/receiver.compiled.debug.map +2 -2
- package/dist/receiver.compiled.js +3 -3
- package/dist/receiver.compiled.map +2 -2
- package/dist/shaka-player.compiled.d.ts +3 -2
- package/dist/shaka-player.compiled.debug.d.ts +3 -2
- package/dist/shaka-player.compiled.debug.externs.js +25 -24
- package/dist/shaka-player.compiled.debug.js +233 -224
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +25 -24
- package/dist/shaka-player.compiled.js +800 -797
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +3 -2
- package/dist/shaka-player.ui.debug.d.ts +3 -2
- package/dist/shaka-player.ui.debug.externs.js +25 -24
- package/dist/shaka-player.ui.debug.js +286 -278
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +25 -24
- package/dist/shaka-player.ui.js +939 -935
- package/dist/shaka-player.ui.map +4 -4
- package/docs/jsdoc-template/publish.js +33 -0
- package/docs/jsdoc-template/tmpl/container.tmpl +4 -1
- package/docs/jsdoc.conf.json +1 -0
- package/docs/tutorials/welcome.md +2 -2
- package/externs/shaka/manifest_parser.js +4 -1
- package/externs/shaka/player.js +7 -1
- package/lib/ads/client_side_ad_manager.js +12 -2
- package/lib/cast/cast_sender.js +39 -14
- package/lib/cea/cea608_memory.js +4 -0
- package/lib/hls/hls_parser.js +48 -15
- package/lib/media/drm_engine.js +59 -7
- package/lib/media/media_source_engine.js +43 -15
- package/lib/media/playhead.js +1 -1
- package/lib/media/streaming_engine.js +79 -14
- package/lib/offline/indexeddb/storage_mechanism.js +24 -0
- package/lib/offline/storage.js +1 -0
- package/lib/player.js +17 -5
- package/lib/polyfill/media_capabilities.js +7 -6
- package/lib/text/ttml_text_parser.js +69 -87
- package/lib/text/vtt_text_parser.js +1 -1
- package/lib/util/error.js +7 -0
- package/lib/util/periods.js +9 -9
- package/lib/util/platform.js +19 -5
- package/lib/util/player_configuration.js +4 -0
- package/lib/util/pssh.js +2 -1
- package/lib/util/stream_utils.js +2 -1
- package/lib/util/xml_utils.js +45 -6
- package/package.json +1 -1
- package/test/cea/cea608_memory_unit.js +88 -0
- package/test/dash/dash_parser_content_protection_unit.js +1 -0
- package/test/dash/dash_parser_live_unit.js +1 -0
- package/test/dash/dash_parser_manifest_unit.js +1 -0
- package/test/dash/dash_parser_segment_base_unit.js +1 -0
- package/test/dash/dash_parser_segment_list_unit.js +1 -0
- package/test/dash/dash_parser_segment_template_unit.js +1 -0
- package/test/hls/hls_live_unit.js +169 -247
- package/test/hls/hls_parser_unit.js +60 -2
- package/test/media/drm_engine_unit.js +61 -0
- package/test/media/media_source_engine_integration.js +36 -0
- package/test/media/media_source_engine_unit.js +118 -1
- package/test/media/streaming_engine_integration.js +9 -7
- package/test/media/streaming_engine_unit.js +29 -0
- package/test/offline/offline_integration.js +3 -3
- package/test/offline/storage_integration.js +30 -0
- package/test/player_integration.js +2 -2
- package/test/test/util/dash_parser_util.js +2 -0
- package/test/test/util/ttml_utils.js +0 -2
- package/test/text/ttml_text_parser_unit.js +46 -0
- package/test/text/vtt_text_parser_unit.js +23 -1
- package/test/ui/text_displayer_layout_unit.js +17 -2
- package/test/util/periods_unit.js +149 -11
- package/test/util/xml_utils_unit.js +64 -0
- package/ui/controls.js +0 -7
|
@@ -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,
|
|
@@ -1527,30 +1528,6 @@ shaka.util.EventManager = class {
|
|
|
1527
1528
|
* @typedef {function(!Event)}
|
|
1528
1529
|
*/
|
|
1529
1530
|
shaka.util.EventManager.ListenerType;
|
|
1530
|
-
/**
|
|
1531
|
-
* @summary An interface to register manifest parsers.
|
|
1532
|
-
*/
|
|
1533
|
-
shaka.media.ManifestParser = class {
|
|
1534
|
-
/**
|
|
1535
|
-
* Registers a manifest parser by file extension.
|
|
1536
|
-
* @param {string} extension The file extension of the manifest.
|
|
1537
|
-
* @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
|
|
1538
|
-
* used to create parser instances.
|
|
1539
|
-
*/
|
|
1540
|
-
static registerParserByExtension(extension, parserFactory) {}
|
|
1541
|
-
/**
|
|
1542
|
-
* Registers a manifest parser by MIME type.
|
|
1543
|
-
* @param {string} mimeType The MIME type of the manifest.
|
|
1544
|
-
* @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
|
|
1545
|
-
* used to create parser instances.
|
|
1546
|
-
*/
|
|
1547
|
-
static registerParserByMime(mimeType, parserFactory) {}
|
|
1548
|
-
/**
|
|
1549
|
-
* Unregisters a manifest parser by MIME type.
|
|
1550
|
-
* @param {string} mimeType The MIME type of the manifest.
|
|
1551
|
-
*/
|
|
1552
|
-
static unregisterParserByMime(mimeType) {}
|
|
1553
|
-
};
|
|
1554
1531
|
/**
|
|
1555
1532
|
* @summary DataViewReader abstracts a DataView object.
|
|
1556
1533
|
*/
|
|
@@ -1721,6 +1698,30 @@ shaka.util.Mp4Parser = class {
|
|
|
1721
1698
|
* @typedef {function(!shaka.extern.ParsedBox)}
|
|
1722
1699
|
*/
|
|
1723
1700
|
shaka.util.Mp4Parser.CallbackType;
|
|
1701
|
+
/**
|
|
1702
|
+
* @summary An interface to register manifest parsers.
|
|
1703
|
+
*/
|
|
1704
|
+
shaka.media.ManifestParser = class {
|
|
1705
|
+
/**
|
|
1706
|
+
* Registers a manifest parser by file extension.
|
|
1707
|
+
* @param {string} extension The file extension of the manifest.
|
|
1708
|
+
* @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
|
|
1709
|
+
* used to create parser instances.
|
|
1710
|
+
*/
|
|
1711
|
+
static registerParserByExtension(extension, parserFactory) {}
|
|
1712
|
+
/**
|
|
1713
|
+
* Registers a manifest parser by MIME type.
|
|
1714
|
+
* @param {string} mimeType The MIME type of the manifest.
|
|
1715
|
+
* @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
|
|
1716
|
+
* used to create parser instances.
|
|
1717
|
+
*/
|
|
1718
|
+
static registerParserByMime(mimeType, parserFactory) {}
|
|
1719
|
+
/**
|
|
1720
|
+
* Unregisters a manifest parser by MIME type.
|
|
1721
|
+
* @param {string} mimeType The MIME type of the manifest.
|
|
1722
|
+
*/
|
|
1723
|
+
static unregisterParserByMime(mimeType) {}
|
|
1724
|
+
};
|
|
1724
1725
|
/**
|
|
1725
1726
|
* Creates an InitSegmentReference, which provides the location to an
|
|
1726
1727
|
* initialization segment.
|