shaka-player 4.9.31 → 4.9.32
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 +35 -35
- package/dist/shaka-player.compiled.d.ts +7 -7
- package/dist/shaka-player.compiled.debug.d.ts +7 -7
- package/dist/shaka-player.compiled.debug.js +179 -176
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +1167 -1166
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +7 -7
- package/dist/shaka-player.ui.debug.d.ts +7 -7
- package/dist/shaka-player.ui.debug.js +148 -145
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +1341 -1340
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/abortable.js +36 -36
- 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 +7 -5
- package/lib/util/platform.js +18 -7
- package/package.json +2 -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
|
@@ -154,7 +154,7 @@ goog.addDependency('../../../../lib/text/stub_text_displayer.js', ['shaka.text.S
|
|
|
154
154
|
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'});
|
|
155
155
|
goog.addDependency('../../../../lib/text/text_utils.js', ['shaka.text.Utils'], ['shaka.log', 'shaka.text.Cue'], {'lang': 'es6'});
|
|
156
156
|
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'});
|
|
157
|
-
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'});
|
|
157
|
+
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'});
|
|
158
158
|
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.TXml', 'shaka.util.TextParser'], {'lang': 'es6'});
|
|
159
159
|
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
160
160
|
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
|
@@ -761,49 +761,49 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
761
761
|
* @const
|
|
762
762
|
*/
|
|
763
763
|
shaka.ui.Locales.Ids = {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
764
|
+
VOLUME: 'VOLUME',
|
|
765
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
766
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
767
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
768
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
769
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
770
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
771
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
772
|
+
LOOP: 'LOOP',
|
|
767
773
|
PAUSE: 'PAUSE',
|
|
774
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
775
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
776
|
+
CAPTIONS: 'CAPTIONS',
|
|
777
|
+
AD_TIME: 'AD_TIME',
|
|
778
|
+
REWIND: 'REWIND',
|
|
768
779
|
STATISTICS: 'STATISTICS',
|
|
769
|
-
|
|
780
|
+
OFF: 'OFF',
|
|
781
|
+
MUTE: 'MUTE',
|
|
770
782
|
SKIP_AD: 'SKIP_AD',
|
|
771
|
-
|
|
772
|
-
CAPTIONS: 'CAPTIONS',
|
|
773
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
774
|
-
UNMUTE: 'UNMUTE',
|
|
775
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
776
|
-
ON: 'ON',
|
|
783
|
+
AIRPLAY: 'AIRPLAY',
|
|
777
784
|
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
778
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
779
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
780
|
-
REPLAY: 'REPLAY',
|
|
781
785
|
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
782
|
-
AIRPLAY: 'AIRPLAY',
|
|
783
|
-
CAST: 'CAST',
|
|
784
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
785
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
786
|
-
AD_TIME: 'AD_TIME',
|
|
787
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
788
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
789
786
|
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
790
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
791
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
792
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
793
|
-
QUALITY: 'QUALITY',
|
|
794
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
795
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
796
|
-
MUTE: 'MUTE',
|
|
797
787
|
FAST_FORWARD: 'FAST_FORWARD',
|
|
798
|
-
|
|
799
|
-
|
|
788
|
+
REPLAY: 'REPLAY',
|
|
789
|
+
QUALITY: 'QUALITY',
|
|
800
790
|
LIVE: 'LIVE',
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
OFF: 'OFF',
|
|
804
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
791
|
+
AD_DURATION: 'AD_DURATION',
|
|
792
|
+
LANGUAGE: 'LANGUAGE',
|
|
805
793
|
SEEK: 'SEEK',
|
|
806
|
-
|
|
807
|
-
|
|
794
|
+
SURROUND: 'SURROUND',
|
|
795
|
+
CAST: 'CAST',
|
|
796
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
797
|
+
ON: 'ON',
|
|
798
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
808
799
|
BACK: 'BACK',
|
|
800
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
801
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
802
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
803
|
+
RESOLUTION: 'RESOLUTION',
|
|
804
|
+
UNMUTE: 'UNMUTE',
|
|
805
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
806
|
+
PLAY: 'PLAY',
|
|
807
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
808
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
809
809
|
};
|
|
@@ -3748,6 +3748,13 @@ declare namespace shaka.extern {
|
|
|
3748
3748
|
* whereas aborting only means that further work is stopped.
|
|
3749
3749
|
*/
|
|
3750
3750
|
interface IAbortableOperation < T > {
|
|
3751
|
+
/**
|
|
3752
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
3753
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
3754
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
3755
|
+
* object using the error code OPERATION_ABORTED.
|
|
3756
|
+
*/
|
|
3757
|
+
promise : Promise < T > ;
|
|
3751
3758
|
/**
|
|
3752
3759
|
* Can be called by anyone holding this object to abort the underlying
|
|
3753
3760
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -3757,13 +3764,6 @@ declare namespace shaka.extern {
|
|
|
3757
3764
|
*/
|
|
3758
3765
|
abort ( ) : Promise < any > ;
|
|
3759
3766
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
3760
|
-
/**
|
|
3761
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
3762
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
3763
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
3764
|
-
* object using the error code OPERATION_ABORTED.
|
|
3765
|
-
*/
|
|
3766
|
-
promise : Promise < T > ;
|
|
3767
3767
|
}
|
|
3768
3768
|
}
|
|
3769
3769
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -3748,6 +3748,13 @@ declare namespace shaka.extern {
|
|
|
3748
3748
|
* whereas aborting only means that further work is stopped.
|
|
3749
3749
|
*/
|
|
3750
3750
|
interface IAbortableOperation < T > {
|
|
3751
|
+
/**
|
|
3752
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
3753
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
3754
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
3755
|
+
* object using the error code OPERATION_ABORTED.
|
|
3756
|
+
*/
|
|
3757
|
+
promise : Promise < T > ;
|
|
3751
3758
|
/**
|
|
3752
3759
|
* Can be called by anyone holding this object to abort the underlying
|
|
3753
3760
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -3757,13 +3764,6 @@ declare namespace shaka.extern {
|
|
|
3757
3764
|
*/
|
|
3758
3765
|
abort ( ) : Promise < any > ;
|
|
3759
3766
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
3760
|
-
/**
|
|
3761
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
3762
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
3763
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
3764
|
-
* object using the error code OPERATION_ABORTED.
|
|
3765
|
-
*/
|
|
3766
|
-
promise : Promise < T > ;
|
|
3767
3767
|
}
|
|
3768
3768
|
}
|
|
3769
3769
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|