shaka-player 4.0.2 → 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/CHANGELOG.md +25 -18
- package/CONTRIBUTORS +1 -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 +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/deps.js +2 -2
- package/dist/locales.js +31 -31
- 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 +14 -8
- package/dist/shaka-player.compiled.debug.d.ts +14 -8
- package/dist/shaka-player.compiled.debug.externs.js +10 -2
- package/dist/shaka-player.compiled.debug.js +165 -157
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +10 -2
- package/dist/shaka-player.compiled.js +758 -754
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +15 -9
- package/dist/shaka-player.ui.debug.d.ts +15 -9
- package/dist/shaka-player.ui.debug.externs.js +10 -2
- package/dist/shaka-player.ui.debug.js +198 -186
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +10 -2
- package/dist/shaka-player.ui.js +931 -928
- 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/externs/chromecast.js +9 -2
- package/externs/shaka/manifest.js +7 -0
- package/externs/shaka/player.js +21 -2
- package/externs/shaka/text.js +7 -0
- 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/hls/hls_parser.js +12 -1
- package/lib/media/drm_engine.js +17 -8
- package/lib/media/gap_jumping_controller.js +23 -1
- package/lib/media/playhead.js +47 -4
- package/lib/media/stall_detector.js +19 -2
- package/lib/media/streaming_engine.js +8 -1
- package/lib/offline/manifest_converter.js +1 -0
- package/lib/player.js +175 -69
- package/lib/text/cue.js +6 -0
- package/lib/text/ui_text_displayer.js +1 -0
- package/lib/text/vtt_text_parser.js +4 -0
- package/lib/util/error.js +6 -0
- package/lib/util/fake_event.js +39 -0
- package/lib/util/player_configuration.js +2 -0
- package/lib/util/stats.js +28 -1
- package/lib/util/stream_utils.js +7 -0
- package/package.json +1 -1
- 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/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/player_integration.js +3 -0
- package/test/player_unit.js +142 -1
- package/test/test/util/manifest_generator.js +2 -0
- package/test/test/util/simple_fakes.js +14 -0
- package/test/test/util/streaming_engine_util.js +1 -0
- package/test/text/vtt_text_parser_unit.js +4 -0
- package/test/ui/ui_unit.js +18 -5
- package/test/util/stream_utils_unit.js +108 -0
- package/ui/controls.js +12 -8
- package/ui/externs/ui.js +10 -1
- package/ui/statistics_button.js +10 -0
- package/ui/ui.js +12 -1
|
@@ -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,
|
|
@@ -651,6 +652,10 @@ shaka.text.Cue.prototype.backgroundImage;
|
|
|
651
652
|
* @override
|
|
652
653
|
*/
|
|
653
654
|
shaka.text.Cue.prototype.border;
|
|
655
|
+
/**
|
|
656
|
+
* @override
|
|
657
|
+
*/
|
|
658
|
+
shaka.text.Cue.prototype.textShadow;
|
|
654
659
|
/**
|
|
655
660
|
* @override
|
|
656
661
|
*/
|
|
@@ -3301,8 +3306,10 @@ shaka.cast.CastProxy = class extends shaka.util.FakeEventTarget {
|
|
|
3301
3306
|
* @param {string} receiverAppId The ID of the cast receiver application.
|
|
3302
3307
|
* If blank, casting will not be available, but the proxy will still
|
|
3303
3308
|
* function otherwise.
|
|
3309
|
+
* @param {boolean} androidReceiverCompatible Indicates if the app is
|
|
3310
|
+
* compatible with an Android Receiver.
|
|
3304
3311
|
*/
|
|
3305
|
-
constructor(video, player, receiverAppId) {}
|
|
3312
|
+
constructor(video, player, receiverAppId, androidReceiverCompatible) {}
|
|
3306
3313
|
/**
|
|
3307
3314
|
* Destroys the proxy and the underlying local Player.
|
|
3308
3315
|
* @param {boolean=} forceDisconnect If true, force the receiver app to shut
|
|
@@ -3357,8 +3364,9 @@ shaka.cast.CastProxy = class extends shaka.util.FakeEventTarget {
|
|
|
3357
3364
|
forceDisconnect() {}
|
|
3358
3365
|
/**
|
|
3359
3366
|
* @param {string} newAppId
|
|
3367
|
+
* @param {boolean=} newCastAndroidReceiver
|
|
3360
3368
|
*/
|
|
3361
|
-
changeReceiverId(newAppId) {}
|
|
3369
|
+
changeReceiverId(newAppId, newCastAndroidReceiver) {}
|
|
3362
3370
|
};
|
|
3363
3371
|
/**
|
|
3364
3372
|
* A receiver to communicate between the Chromecast-hosted player and the
|