shaka-player 4.12.0 → 4.12.2
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/.eslintrc.js +1 -0
- package/AUTHORS +1 -0
- package/CONTRIBUTORS +1 -0
- package/dist/deps.js +1 -1
- package/dist/locales.js +34 -34
- package/dist/shaka-player.compiled.d.ts +8 -8
- package/dist/shaka-player.compiled.debug.d.ts +8 -8
- package/dist/shaka-player.compiled.debug.externs.js +1 -1
- package/dist/shaka-player.compiled.debug.js +160 -157
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +1 -1
- package/dist/shaka-player.compiled.js +1258 -1257
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +8 -8
- package/dist/shaka-player.ui.debug.d.ts +8 -8
- package/dist/shaka-player.ui.debug.externs.js +1 -1
- package/dist/shaka-player.ui.debug.js +153 -150
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +1 -1
- package/dist/shaka-player.ui.js +1488 -1487
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/abortable.js +36 -36
- package/lib/ads/interstitial_ad_manager.js +6 -3
- package/lib/dash/dash_parser.js +11 -2
- package/lib/hls/hls_parser.js +1 -1
- package/lib/media/drm_engine.js +2 -0
- package/lib/media/media_source_engine.js +61 -3
- package/lib/media/preload_manager.js +6 -1
- package/lib/media/segment_reference.js +1 -1
- package/lib/media/streaming_engine.js +9 -11
- package/lib/net/networking_engine.js +3 -3
- package/lib/player.js +12 -2
- package/lib/polyfill/media_capabilities.js +46 -8
- package/lib/text/ui_text_displayer.js +8 -0
- package/lib/text/vtt_text_parser.js +2 -8
- package/lib/util/abortable_operation.js +8 -6
- package/lib/util/error.js +1 -1
- package/lib/util/platform.js +18 -7
- package/package.json +2 -2
- package/ui/chapter_selection.js +6 -2
- package/ui/playback_rate_selection.js +6 -2
package/.eslintrc.js
CHANGED
|
@@ -84,6 +84,7 @@ module.exports = {
|
|
|
84
84
|
'no-empty': ['error', {'allowEmptyCatch': true}],
|
|
85
85
|
'no-misleading-character-class': 'error',
|
|
86
86
|
'no-template-curly-in-string': 'error',
|
|
87
|
+
'no-fallthrough': ['error', {'allowEmptyCase': true}],
|
|
87
88
|
// TODO: Try to re-enable this if possible. Right now, it produces way too
|
|
88
89
|
// many false-positives with eslint 7. It worked well enough in eslint 5.
|
|
89
90
|
// 'require-atomic-updates': 'error',
|
package/AUTHORS
CHANGED
|
@@ -32,6 +32,7 @@ Cristian Atehortua <cristian25a32@gmail.com>
|
|
|
32
32
|
Damien Deis <developer.deis@gmail.com>
|
|
33
33
|
Dany L'Hébreux <danylhebreux@gmail.com>
|
|
34
34
|
Dave Nicholas <davenicholasuk@gmail.com>
|
|
35
|
+
David Pfister <pfisterdd10@gmail.com>
|
|
35
36
|
Davide Zordan <mail@davide.dev>
|
|
36
37
|
Dl Dador <dldador@gmail.com>
|
|
37
38
|
Edgeware AB <*@edgeware.tv>
|
package/CONTRIBUTORS
CHANGED
|
@@ -48,6 +48,7 @@ Cristian Atehortua <cristian25a32@gmail.com>
|
|
|
48
48
|
Damien Deis <developer.deis@gmail.com>
|
|
49
49
|
Dany L'Hébreux <danylhebreux@gmail.com>
|
|
50
50
|
Dave Nicholas <davenicholasuk@gmail.com>
|
|
51
|
+
David Pfister <pfisterdd10@gmail.com>
|
|
51
52
|
Davide Zordan <mail@davide.dev>
|
|
52
53
|
Dl Dador <dldador@gmail.com>
|
|
53
54
|
Donato Borrello <donato@jwplayer.com>
|
package/dist/deps.js
CHANGED
|
@@ -156,7 +156,7 @@ goog.addDependency('../../../../lib/text/stub_text_displayer.js', ['shaka.text.S
|
|
|
156
156
|
goog.addDependency('../../../../lib/text/text_engine.js', ['shaka.text.TextEngine'], ['goog.asserts', 'shaka.Deprecate', 'shaka.media.ClosedCaptionParser', 'shaka.text.Cue', 'shaka.util.BufferUtils', 'shaka.util.IDestroyable', 'shaka.util.MimeUtils'], {'lang': 'es8'});
|
|
157
157
|
goog.addDependency('../../../../lib/text/text_utils.js', ['shaka.text.Utils'], ['shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion'], {'lang': 'es6'});
|
|
158
158
|
goog.addDependency('../../../../lib/text/ttml_text_parser.js', ['shaka.text.TtmlTextParser'], ['goog.Uri', 'goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.ArrayUtils', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TXml'], {'lang': 'es6'});
|
|
159
|
-
goog.addDependency('../../../../lib/text/ui_text_displayer.js', ['shaka.text.UITextDisplayer'], ['goog.asserts', 'shaka.Deprecate', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.Utils', 'shaka.util.Dom', 'shaka.util.EventManager', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
159
|
+
goog.addDependency('../../../../lib/text/ui_text_displayer.js', ['shaka.text.UITextDisplayer'], ['goog.asserts', 'shaka.Deprecate', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.Utils', 'shaka.util.Dom', 'shaka.util.EventManager', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
160
160
|
goog.addDependency('../../../../lib/text/vtt_text_parser.js', ['shaka.text.VttTextParser'], ['goog.asserts', 'shaka.log', 'shaka.media.ManifestParser', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
|
|
161
161
|
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
162
162
|
goog.addDependency('../../../../lib/transmuxer/aac_transmuxer.js', ['shaka.transmuxer.AacTransmuxer'], ['shaka.media.Capabilities', 'shaka.transmuxer.ADTS', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4Generator', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
package/dist/locales.js
CHANGED
|
@@ -912,51 +912,51 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
912
912
|
* @const
|
|
913
913
|
*/
|
|
914
914
|
shaka.ui.Locales.Ids = {
|
|
915
|
-
|
|
916
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
917
|
-
CHAPTERS: 'CHAPTERS',
|
|
918
|
-
PAUSE: 'PAUSE',
|
|
919
|
-
UNMUTE: 'UNMUTE',
|
|
920
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
921
|
-
MUTE: 'MUTE',
|
|
915
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
922
916
|
SEEK: 'SEEK',
|
|
923
|
-
|
|
917
|
+
REPLAY: 'REPLAY',
|
|
924
918
|
STATISTICS: 'STATISTICS',
|
|
925
|
-
|
|
926
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
927
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
928
|
-
SKIP_AD: 'SKIP_AD',
|
|
929
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
930
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
931
|
-
BACK: 'BACK',
|
|
919
|
+
LOOP: 'LOOP',
|
|
932
920
|
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
933
|
-
|
|
921
|
+
RESOLUTION: 'RESOLUTION',
|
|
934
922
|
PLAY: 'PLAY',
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
938
|
-
VOLUME: 'VOLUME',
|
|
939
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
940
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
941
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
923
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
924
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
942
925
|
SURROUND: 'SURROUND',
|
|
943
926
|
AIRPLAY: 'AIRPLAY',
|
|
927
|
+
VOLUME: 'VOLUME',
|
|
928
|
+
BACK: 'BACK',
|
|
929
|
+
MUTE: 'MUTE',
|
|
930
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
931
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
932
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
933
|
+
OFF: 'OFF',
|
|
944
934
|
QUALITY: 'QUALITY',
|
|
935
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
945
936
|
LANGUAGE: 'LANGUAGE',
|
|
946
937
|
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
938
|
+
CHAPTERS: 'CHAPTERS',
|
|
939
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
940
|
+
SKIP_AD: 'SKIP_AD',
|
|
941
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
942
|
+
PAUSE: 'PAUSE',
|
|
943
|
+
AD_TIME: 'AD_TIME',
|
|
944
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
952
945
|
LIVE: 'LIVE',
|
|
953
|
-
|
|
954
|
-
REWIND: 'REWIND',
|
|
955
|
-
LOOP: 'LOOP',
|
|
946
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
956
947
|
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
957
|
-
|
|
958
|
-
|
|
948
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
949
|
+
AD_DURATION: 'AD_DURATION',
|
|
950
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
951
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
952
|
+
ON: 'ON',
|
|
953
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
954
|
+
REWIND: 'REWIND',
|
|
959
955
|
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
956
|
+
CAPTIONS: 'CAPTIONS',
|
|
960
957
|
CAST: 'CAST',
|
|
961
|
-
|
|
958
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
959
|
+
UNMUTE: 'UNMUTE',
|
|
960
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
961
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
962
962
|
};
|
|
@@ -3416,7 +3416,7 @@ declare namespace shaka.util.Error {
|
|
|
3416
3416
|
UNEXPECTED_TEST_REQUEST = 1009.0 ,
|
|
3417
3417
|
UNSUPPORTED_EXTERNAL_THUMBNAILS_URI = 2017.0 ,
|
|
3418
3418
|
UNSUPPORTED_SCHEME = 1000.0 ,
|
|
3419
|
-
VAST_INVALID_XML =
|
|
3419
|
+
VAST_INVALID_XML = 10007.0 ,
|
|
3420
3420
|
VIDEO_ERROR = 3016.0 ,
|
|
3421
3421
|
WEBM_CUES_ELEMENT_MISSING = 3007.0 ,
|
|
3422
3422
|
WEBM_CUE_TIME_ELEMENT_MISSING = 3013.0 ,
|
|
@@ -4058,6 +4058,13 @@ declare namespace shaka.extern {
|
|
|
4058
4058
|
* whereas aborting only means that further work is stopped.
|
|
4059
4059
|
*/
|
|
4060
4060
|
interface IAbortableOperation < T > {
|
|
4061
|
+
/**
|
|
4062
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
4063
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
4064
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4065
|
+
* object using the error code OPERATION_ABORTED.
|
|
4066
|
+
*/
|
|
4067
|
+
promise : Promise < T > ;
|
|
4061
4068
|
/**
|
|
4062
4069
|
* Can be called by anyone holding this object to abort the underlying
|
|
4063
4070
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -4067,13 +4074,6 @@ declare namespace shaka.extern {
|
|
|
4067
4074
|
*/
|
|
4068
4075
|
abort ( ) : Promise < any > ;
|
|
4069
4076
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
4070
|
-
/**
|
|
4071
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
4072
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
4073
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4074
|
-
* object using the error code OPERATION_ABORTED.
|
|
4075
|
-
*/
|
|
4076
|
-
promise : Promise < T > ;
|
|
4077
4077
|
}
|
|
4078
4078
|
}
|
|
4079
4079
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -3416,7 +3416,7 @@ declare namespace shaka.util.Error {
|
|
|
3416
3416
|
UNEXPECTED_TEST_REQUEST = 1009.0 ,
|
|
3417
3417
|
UNSUPPORTED_EXTERNAL_THUMBNAILS_URI = 2017.0 ,
|
|
3418
3418
|
UNSUPPORTED_SCHEME = 1000.0 ,
|
|
3419
|
-
VAST_INVALID_XML =
|
|
3419
|
+
VAST_INVALID_XML = 10007.0 ,
|
|
3420
3420
|
VIDEO_ERROR = 3016.0 ,
|
|
3421
3421
|
WEBM_CUES_ELEMENT_MISSING = 3007.0 ,
|
|
3422
3422
|
WEBM_CUE_TIME_ELEMENT_MISSING = 3013.0 ,
|
|
@@ -4058,6 +4058,13 @@ declare namespace shaka.extern {
|
|
|
4058
4058
|
* whereas aborting only means that further work is stopped.
|
|
4059
4059
|
*/
|
|
4060
4060
|
interface IAbortableOperation < T > {
|
|
4061
|
+
/**
|
|
4062
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
4063
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
4064
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4065
|
+
* object using the error code OPERATION_ABORTED.
|
|
4066
|
+
*/
|
|
4067
|
+
promise : Promise < T > ;
|
|
4061
4068
|
/**
|
|
4062
4069
|
* Can be called by anyone holding this object to abort the underlying
|
|
4063
4070
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -4067,13 +4074,6 @@ declare namespace shaka.extern {
|
|
|
4067
4074
|
*/
|
|
4068
4075
|
abort ( ) : Promise < any > ;
|
|
4069
4076
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
4070
|
-
/**
|
|
4071
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
4072
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
4073
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4074
|
-
* object using the error code OPERATION_ABORTED.
|
|
4075
|
-
*/
|
|
4076
|
-
promise : Promise < T > ;
|
|
4077
4077
|
}
|
|
4078
4078
|
}
|
|
4079
4079
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -515,7 +515,7 @@ shaka.util.Error.Code = {
|
|
|
515
515
|
'CURRENT_DAI_REQUEST_NOT_FINISHED': 10004,
|
|
516
516
|
'MT_AD_MANAGER_NOT_INITIALIZED': 10005,
|
|
517
517
|
'INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED': 10006,
|
|
518
|
-
'VAST_INVALID_XML':
|
|
518
|
+
'VAST_INVALID_XML': 10007
|
|
519
519
|
};
|
|
520
520
|
/**
|
|
521
521
|
* A timer allows a single function to be executed at a later time or at
|