shaka-player 4.0.0 → 4.1.0
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/config.yml +1 -0
- package/.github/workflows/release-please.yaml +6 -11
- package/CHANGELOG.md +33 -0
- package/CONTRIBUTORS +1 -0
- package/README.md +4 -4
- package/build/misspellings.txt +1 -0
- package/demo/common/message_ids.js +1 -0
- package/demo/config.js +3 -1
- package/demo/demo.less +0 -1
- package/demo/locales/en.json +1 -0
- package/demo/locales/source.json +4 -0
- package/dist/controls.css +3 -3
- package/dist/controls.css.map +1 -1
- package/dist/demo.compiled.debug.js +4 -4
- package/dist/demo.compiled.debug.map +2 -2
- package/dist/demo.compiled.js +4 -4
- package/dist/demo.compiled.map +2 -2
- package/dist/demo.css +1 -1
- package/dist/demo.css.map +1 -1
- package/dist/deps.js +3 -3
- package/dist/locales.js +32 -32
- package/dist/receiver.compiled.debug.js +2 -2
- package/dist/receiver.compiled.debug.map +2 -2
- package/dist/receiver.compiled.js +2 -2
- package/dist/receiver.compiled.map +2 -2
- package/dist/shaka-player.compiled.d.ts +15 -8
- package/dist/shaka-player.compiled.debug.d.ts +15 -8
- package/dist/shaka-player.compiled.debug.externs.js +11 -2
- package/dist/shaka-player.compiled.debug.js +266 -253
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +11 -2
- package/dist/shaka-player.compiled.js +792 -784
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +16 -9
- package/dist/shaka-player.ui.debug.d.ts +16 -9
- package/dist/shaka-player.ui.debug.externs.js +11 -2
- package/dist/shaka-player.ui.debug.js +299 -282
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +11 -2
- package/dist/shaka-player.ui.js +948 -941
- package/dist/shaka-player.ui.map +3 -3
- package/docs/design/chromecast.md +3 -1
- package/docs/tutorials/drm-config.md +16 -0
- package/docs/tutorials/ui.md +26 -0
- package/docs/tutorials/upgrade.md +4 -2
- package/externs/chromecast.js +9 -2
- package/externs/shaka/manifest.js +7 -0
- package/externs/shaka/player.js +32 -2
- package/externs/shaka/text.js +7 -0
- package/karma.conf.js +4 -0
- package/lib/abr/simple_abr_manager.js +2 -1
- package/lib/cast/cast_proxy.js +19 -8
- package/lib/cast/cast_receiver.js +3 -3
- package/lib/cast/cast_sender.js +12 -2
- package/lib/dash/dash_parser.js +2 -2
- package/lib/hls/hls_parser.js +46 -15
- package/lib/media/drm_engine.js +36 -8
- package/lib/media/gap_jumping_controller.js +23 -1
- package/lib/media/media_source_engine.js +91 -37
- package/lib/media/playhead.js +47 -4
- package/lib/media/stall_detector.js +19 -2
- package/lib/media/streaming_engine.js +9 -3
- package/lib/offline/indexeddb/storage_mechanism.js +4 -2
- package/lib/offline/manifest_converter.js +1 -0
- package/lib/player.js +339 -175
- package/lib/text/cue.js +6 -0
- package/lib/text/ui_text_displayer.js +1 -0
- package/lib/text/vtt_text_parser.js +11 -7
- package/lib/util/config_utils.js +25 -0
- package/lib/util/error.js +13 -0
- package/lib/util/fake_event.js +39 -0
- package/lib/util/manifest_parser_utils.js +1 -1
- package/lib/util/mime_utils.js +62 -6
- package/lib/util/periods.js +5 -4
- package/lib/util/player_configuration.js +16 -14
- package/lib/util/stats.js +28 -1
- package/lib/util/stream_utils.js +11 -2
- package/package.json +5 -2
- package/test/cast/cast_proxy_unit.js +3 -1
- package/test/cast/cast_sender_unit.js +21 -6
- package/test/demo/demo_unit.js +2 -1
- package/test/hls/hls_live_unit.js +79 -7
- package/test/hls/manifest_text_parser_unit.js +19 -0
- package/test/media/adaptation_set_unit.js +1 -0
- package/test/media/playhead_unit.js +114 -25
- package/test/media/stall_detector_unit.js +20 -2
- package/test/media/streaming_engine_integration.js +2 -1
- package/test/media/streaming_engine_unit.js +1 -0
- package/test/offline/indexeddb_storage_unit.js +1 -1
- package/test/offline/storage_compatibility_unit.js +1 -1
- package/test/player_external.js +7 -1
- package/test/player_integration.js +9 -10
- package/test/player_src_equals_integration.js +81 -83
- package/test/player_unit.js +240 -2
- package/test/test/boot.js +9 -0
- package/test/test/externs/filters.js +4 -0
- package/test/test/util/manifest_generator.js +2 -0
- package/test/test/util/simple_fakes.js +45 -2
- package/test/test/util/streaming_engine_util.js +1 -0
- package/test/text/vtt_text_parser_unit.js +68 -5
- package/test/ui/ui_unit.js +18 -5
- package/test/util/mime_utils_unit.js +54 -0
- package/test/util/periods_unit.js +79 -0
- package/test/util/stream_utils_unit.js +108 -0
- package/ui/controls.js +12 -8
- package/ui/externs/ui.js +10 -1
- package/ui/less/containers.less +1 -1
- package/ui/less/general.less +1 -1
- package/ui/less/range_elements.less +1 -0
- package/ui/resolution_selection.js +1 -1
- package/ui/statistics_button.js +10 -0
- package/ui/ui.js +12 -1
- package/.github/pull_request_template.md +0 -10
- package/docs/tutorials/gsoc-ideas-list.md +0 -3
|
@@ -198,6 +198,7 @@ shaka.util.Error.Code = {
|
|
|
198
198
|
'MALFORMED_TEST_URI': 1008,
|
|
199
199
|
'UNEXPECTED_TEST_REQUEST': 1009,
|
|
200
200
|
'ATTEMPTS_EXHAUSTED': 1010,
|
|
201
|
+
'SEGMENT_MISSING': 1011,
|
|
201
202
|
'INVALID_TEXT_HEADER': 2000,
|
|
202
203
|
'INVALID_TEXT_CUE': 2001,
|
|
203
204
|
'UNABLE_TO_DETECT_ENCODING': 2003,
|
|
@@ -211,6 +212,7 @@ shaka.util.Error.Code = {
|
|
|
211
212
|
'CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS': 2012,
|
|
212
213
|
'TEXT_ONLY_WEBVTT_SRC_EQUALS': 2013,
|
|
213
214
|
'MISSING_TEXT_PLUGIN': 2014,
|
|
215
|
+
'CHAPTERS_TRACK_FAILED': 2015,
|
|
214
216
|
'BUFFER_READ_OUT_OF_BOUNDS': 3000,
|
|
215
217
|
'JS_INTEGER_OVERFLOW': 3001,
|
|
216
218
|
'EBML_OVERFLOW': 3002,
|
|
@@ -650,6 +652,10 @@ shaka.text.Cue.prototype.backgroundImage;
|
|
|
650
652
|
* @override
|
|
651
653
|
*/
|
|
652
654
|
shaka.text.Cue.prototype.border;
|
|
655
|
+
/**
|
|
656
|
+
* @override
|
|
657
|
+
*/
|
|
658
|
+
shaka.text.Cue.prototype.textShadow;
|
|
653
659
|
/**
|
|
654
660
|
* @override
|
|
655
661
|
*/
|
|
@@ -3300,8 +3306,10 @@ shaka.cast.CastProxy = class extends shaka.util.FakeEventTarget {
|
|
|
3300
3306
|
* @param {string} receiverAppId The ID of the cast receiver application.
|
|
3301
3307
|
* If blank, casting will not be available, but the proxy will still
|
|
3302
3308
|
* function otherwise.
|
|
3309
|
+
* @param {boolean} androidReceiverCompatible Indicates if the app is
|
|
3310
|
+
* compatible with an Android Receiver.
|
|
3303
3311
|
*/
|
|
3304
|
-
constructor(video, player, receiverAppId) {}
|
|
3312
|
+
constructor(video, player, receiverAppId, androidReceiverCompatible) {}
|
|
3305
3313
|
/**
|
|
3306
3314
|
* Destroys the proxy and the underlying local Player.
|
|
3307
3315
|
* @param {boolean=} forceDisconnect If true, force the receiver app to shut
|
|
@@ -3356,8 +3364,9 @@ shaka.cast.CastProxy = class extends shaka.util.FakeEventTarget {
|
|
|
3356
3364
|
forceDisconnect() {}
|
|
3357
3365
|
/**
|
|
3358
3366
|
* @param {string} newAppId
|
|
3367
|
+
* @param {boolean=} newCastAndroidReceiver
|
|
3359
3368
|
*/
|
|
3360
|
-
changeReceiverId(newAppId) {}
|
|
3369
|
+
changeReceiverId(newAppId, newCastAndroidReceiver) {}
|
|
3361
3370
|
};
|
|
3362
3371
|
/**
|
|
3363
3372
|
* A receiver to communicate between the Chromecast-hosted player and the
|