shaka-player 4.12.4 → 4.12.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/dist/deps.js +2 -2
- package/dist/locales.js +35 -35
- package/dist/shaka-player.compiled.d.ts +11 -3
- package/dist/shaka-player.compiled.debug.d.ts +11 -3
- package/dist/shaka-player.compiled.debug.externs.js +8 -5
- package/dist/shaka-player.compiled.debug.js +340 -331
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +8 -5
- package/dist/shaka-player.compiled.js +1383 -1378
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +11 -3
- package/dist/shaka-player.ui.debug.d.ts +11 -3
- package/dist/shaka-player.ui.debug.externs.js +8 -5
- package/dist/shaka-player.ui.debug.js +357 -348
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +8 -5
- package/dist/shaka-player.ui.js +1605 -1599
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/codecs.js +21 -0
- package/externs/shaka/offline.js +4 -0
- package/lib/cast/cast_utils.js +1 -0
- package/lib/dash/dash_parser.js +3 -0
- package/lib/hls/hls_parser.js +26 -5
- package/lib/media/drm_engine.js +70 -29
- package/lib/media/manifest_filterer.js +2 -1
- package/lib/media/media_source_engine.js +138 -129
- package/lib/media/segment_utils.js +50 -44
- package/lib/media/streaming_engine.js +9 -1
- package/lib/offline/download_info.js +5 -0
- package/lib/offline/download_manager.js +54 -0
- package/lib/offline/manifest_converter.js +1 -0
- package/lib/offline/storage.js +12 -3
- package/lib/player.js +52 -29
- package/lib/polyfill/media_capabilities.js +1 -1
- package/lib/text/simple_text_displayer.js +9 -1
- package/lib/text/ui_text_displayer.js +2 -14
- package/lib/transmuxer/aac_transmuxer.js +11 -3
- package/lib/transmuxer/ac3_transmuxer.js +11 -3
- package/lib/transmuxer/ec3_transmuxer.js +11 -3
- package/lib/transmuxer/h264.js +143 -70
- package/lib/transmuxer/mp3_transmuxer.js +11 -3
- package/lib/transmuxer/ts_transmuxer.js +68 -28
- package/lib/util/drm_utils.js +20 -0
- package/lib/util/mime_utils.js +3 -0
- package/lib/util/object_utils.js +83 -0
- package/lib/util/platform.js +48 -40
- package/lib/util/stream_utils.js +37 -113
- package/lib/util/ts_parser.js +111 -85
- package/package.json +1 -1
- package/ui/ad_counter.js +5 -0
- package/ui/controls.js +4 -2
- package/ui/fast_forward_button.js +7 -0
- package/ui/play_button.js +1 -1
- package/ui/playback_rate_selection.js +1 -1
- package/ui/rewind_button.js +7 -0
package/dist/deps.js
CHANGED
|
@@ -105,7 +105,7 @@ goog.addDependency('../../../../lib/net/http_plugin_utils.js', ['shaka.net.HttpP
|
|
|
105
105
|
goog.addDependency('../../../../lib/net/http_xhr_plugin.js', ['shaka.net.HttpXHRPlugin'], ['goog.asserts', 'shaka.net.HttpPluginUtils', 'shaka.net.NetworkingEngine', 'shaka.util.AbortableOperation', 'shaka.util.Error'], {'lang': 'es6'});
|
|
106
106
|
goog.addDependency('../../../../lib/net/networking_engine.js', ['shaka.net.NetworkingEngine', 'shaka.net.NetworkingEngine.AdvancedRequestType', 'shaka.net.NetworkingEngine.PendingRequest', 'shaka.net.NetworkingEngine.RequestType'], ['goog.Uri', 'goog.asserts', 'shaka.net.Backoff', 'shaka.util.AbortableOperation', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget', 'shaka.util.IDestroyable', 'shaka.util.ObjectUtils', 'shaka.util.OperationManager', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
107
107
|
goog.addDependency('../../../../lib/net/networking_utils.js', ['shaka.net.NetworkingUtils'], ['goog.Uri', 'shaka.net.NetworkingEngine', 'shaka.util.Error'], {'lang': 'es8'});
|
|
108
|
-
goog.addDependency('../../../../lib/offline/download_info.js', ['shaka.offline.DownloadInfo'], ['shaka.util.Networking'], {'lang': 'es6'});
|
|
108
|
+
goog.addDependency('../../../../lib/offline/download_info.js', ['shaka.offline.DownloadInfo'], ['shaka.util.Networking', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
109
109
|
goog.addDependency('../../../../lib/offline/download_manager.js', ['shaka.offline.DownloadManager'], ['shaka.net.NetworkingEngine', 'shaka.offline.DownloadProgressEstimator', 'shaka.util.ArrayUtils', 'shaka.util.BufferUtils', 'shaka.util.Destroyer', 'shaka.util.Error', 'shaka.util.IDestroyable', 'shaka.util.Pssh'], {'lang': 'es8'});
|
|
110
110
|
goog.addDependency('../../../../lib/offline/download_progress_estimator.js', ['shaka.offline.DownloadProgressEstimator'], [], {'lang': 'es6'});
|
|
111
111
|
goog.addDependency('../../../../lib/offline/indexeddb/base_storage_cell.js', ['shaka.offline.indexeddb.BaseStorageCell'], ['shaka.offline.indexeddb.DBConnection', 'shaka.util.Error'], {'lang': 'es8'});
|
|
@@ -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.
|
|
159
|
+
goog.addDependency('../../../../lib/text/ui_text_displayer.js', ['shaka.text.UITextDisplayer'], ['goog.asserts', '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
|
-
|
|
917
|
-
|
|
915
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
916
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
917
|
+
AIRPLAY: 'AIRPLAY',
|
|
918
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
919
|
+
LOOP: 'LOOP',
|
|
918
920
|
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
919
|
-
|
|
920
|
-
|
|
921
|
+
PAUSE: 'PAUSE',
|
|
922
|
+
AD_TIME: 'AD_TIME',
|
|
923
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
921
924
|
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
925
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
926
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
927
|
+
VOLUME: 'VOLUME',
|
|
922
928
|
CAST: 'CAST',
|
|
923
|
-
CHAPTERS: 'CHAPTERS',
|
|
924
|
-
PLAY: 'PLAY',
|
|
925
|
-
STATISTICS: 'STATISTICS',
|
|
926
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
927
929
|
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
928
|
-
LIVE: 'LIVE',
|
|
929
|
-
LOOP: 'LOOP',
|
|
930
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
931
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
932
|
-
VOLUME: 'VOLUME',
|
|
933
930
|
BACK: 'BACK',
|
|
934
|
-
|
|
931
|
+
CHAPTERS: 'CHAPTERS',
|
|
932
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
933
|
+
LIVE: 'LIVE',
|
|
934
|
+
LANGUAGE: 'LANGUAGE',
|
|
935
|
+
AD_DURATION: 'AD_DURATION',
|
|
936
|
+
UNMUTE: 'UNMUTE',
|
|
937
|
+
MUTE: 'MUTE',
|
|
938
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
939
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
940
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
941
|
+
QUALITY: 'QUALITY',
|
|
935
942
|
RESOLUTION: 'RESOLUTION',
|
|
936
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
937
943
|
CAPTIONS: 'CAPTIONS',
|
|
938
|
-
|
|
939
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
940
|
-
AD_DURATION: 'AD_DURATION',
|
|
941
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
942
|
-
PAUSE: 'PAUSE',
|
|
944
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
943
945
|
SURROUND: 'SURROUND',
|
|
944
|
-
|
|
946
|
+
SKIP_AD: 'SKIP_AD',
|
|
947
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
945
948
|
OFF: 'OFF',
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
949
|
-
LANGUAGE: 'LANGUAGE',
|
|
949
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
950
|
+
REPLAY: 'REPLAY',
|
|
950
951
|
REWIND: 'REWIND',
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
954
|
-
SKIP_AD: 'SKIP_AD',
|
|
952
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
953
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
955
954
|
ON: 'ON',
|
|
956
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
957
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
958
|
-
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
959
955
|
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
960
|
-
|
|
961
|
-
|
|
956
|
+
STATISTICS: 'STATISTICS',
|
|
957
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
958
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
959
|
+
SEEK: 'SEEK',
|
|
960
|
+
PLAY: 'PLAY',
|
|
961
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
962
962
|
};
|
|
@@ -289,6 +289,10 @@ declare namespace shaka {
|
|
|
289
289
|
* return <code>false</code>.
|
|
290
290
|
*/
|
|
291
291
|
isBuffering ( ) : boolean ;
|
|
292
|
+
/**
|
|
293
|
+
* Indicate if the video has ended.
|
|
294
|
+
*/
|
|
295
|
+
isEnded ( ) : boolean ;
|
|
292
296
|
/**
|
|
293
297
|
* Indicates if the player has fully loaded the stream.
|
|
294
298
|
*/
|
|
@@ -2883,7 +2887,7 @@ declare namespace shaka.text {
|
|
|
2883
2887
|
* The text displayer plugin for the Shaka Player UI. Can also be used directly
|
|
2884
2888
|
* by providing an appropriate container element.
|
|
2885
2889
|
*/
|
|
2886
|
-
constructor (video : HTMLMediaElement | null , videoContainer : HTMLElement | null
|
|
2890
|
+
constructor (video : HTMLMediaElement | null , videoContainer : HTMLElement | null ) ;
|
|
2887
2891
|
append (cues : any ) : any ;
|
|
2888
2892
|
configure (config : any ) : any ;
|
|
2889
2893
|
destroy ( ) : any ;
|
|
@@ -4004,7 +4008,7 @@ declare namespace shaka.util {
|
|
|
4004
4008
|
* The code is based on hls.js
|
|
4005
4009
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
4006
4010
|
*/
|
|
4007
|
-
parseNalus (pes : shaka.extern.MPEG_PES ,
|
|
4011
|
+
parseNalus (pes : shaka.extern.MPEG_PES , lastInfo : { nalu : shaka.extern.VideoNalu | null , state : number | null } ) : shaka.extern.VideoNalu [] ;
|
|
4008
4012
|
static Timescale : number ;
|
|
4009
4013
|
/**
|
|
4010
4014
|
* Check if the passed data corresponds to an MPEG2-TS
|
|
@@ -4378,6 +4382,10 @@ declare namespace shaka.extern {
|
|
|
4378
4382
|
declare namespace shaka.extern {
|
|
4379
4383
|
type VideoNalu = { data : Uint8Array , fullData : Uint8Array , time : number | null , type : number } ;
|
|
4380
4384
|
}
|
|
4385
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
|
|
4386
|
+
declare namespace shaka.extern {
|
|
4387
|
+
type VideoSample = { data : Uint8Array , dts : number | null , frame : boolean , isKeyframe : boolean , nalus : shaka.extern.VideoNalu [] , pts : number | null } ;
|
|
4388
|
+
}
|
|
4381
4389
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/drm_info.js
|
|
4382
4390
|
declare namespace shaka.extern {
|
|
4383
4391
|
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , encryptionScheme : string , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , keySystemUris ? : Set < string > | null , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
@@ -4797,7 +4805,7 @@ declare namespace shaka.extern {
|
|
|
4797
4805
|
}
|
|
4798
4806
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
|
|
4799
4807
|
declare namespace shaka.extern {
|
|
4800
|
-
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , colorGamut ? : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , isAudioMuxedInVideo : boolean , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , originalLanguage ? : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , videoLayout ? : string , width : number | null } ;
|
|
4808
|
+
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , colorGamut ? : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , isAudioMuxedInVideo : boolean , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage ? : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , videoLayout ? : string , width : number | null } ;
|
|
4801
4809
|
}
|
|
4802
4810
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
|
|
4803
4811
|
declare namespace shaka.extern {
|
|
@@ -289,6 +289,10 @@ declare namespace shaka {
|
|
|
289
289
|
* return <code>false</code>.
|
|
290
290
|
*/
|
|
291
291
|
isBuffering ( ) : boolean ;
|
|
292
|
+
/**
|
|
293
|
+
* Indicate if the video has ended.
|
|
294
|
+
*/
|
|
295
|
+
isEnded ( ) : boolean ;
|
|
292
296
|
/**
|
|
293
297
|
* Indicates if the player has fully loaded the stream.
|
|
294
298
|
*/
|
|
@@ -2883,7 +2887,7 @@ declare namespace shaka.text {
|
|
|
2883
2887
|
* The text displayer plugin for the Shaka Player UI. Can also be used directly
|
|
2884
2888
|
* by providing an appropriate container element.
|
|
2885
2889
|
*/
|
|
2886
|
-
constructor (video : HTMLMediaElement | null , videoContainer : HTMLElement | null
|
|
2890
|
+
constructor (video : HTMLMediaElement | null , videoContainer : HTMLElement | null ) ;
|
|
2887
2891
|
append (cues : any ) : any ;
|
|
2888
2892
|
configure (config : any ) : any ;
|
|
2889
2893
|
destroy ( ) : any ;
|
|
@@ -4004,7 +4008,7 @@ declare namespace shaka.util {
|
|
|
4004
4008
|
* The code is based on hls.js
|
|
4005
4009
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
4006
4010
|
*/
|
|
4007
|
-
parseNalus (pes : shaka.extern.MPEG_PES ,
|
|
4011
|
+
parseNalus (pes : shaka.extern.MPEG_PES , lastInfo : { nalu : shaka.extern.VideoNalu | null , state : number | null } ) : shaka.extern.VideoNalu [] ;
|
|
4008
4012
|
static Timescale : number ;
|
|
4009
4013
|
/**
|
|
4010
4014
|
* Check if the passed data corresponds to an MPEG2-TS
|
|
@@ -4378,6 +4382,10 @@ declare namespace shaka.extern {
|
|
|
4378
4382
|
declare namespace shaka.extern {
|
|
4379
4383
|
type VideoNalu = { data : Uint8Array , fullData : Uint8Array , time : number | null , type : number } ;
|
|
4380
4384
|
}
|
|
4385
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
|
|
4386
|
+
declare namespace shaka.extern {
|
|
4387
|
+
type VideoSample = { data : Uint8Array , dts : number | null , frame : boolean , isKeyframe : boolean , nalus : shaka.extern.VideoNalu [] , pts : number | null } ;
|
|
4388
|
+
}
|
|
4381
4389
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/drm_info.js
|
|
4382
4390
|
declare namespace shaka.extern {
|
|
4383
4391
|
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , encryptionScheme : string , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , keySystemUris ? : Set < string > | null , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
@@ -4797,7 +4805,7 @@ declare namespace shaka.extern {
|
|
|
4797
4805
|
}
|
|
4798
4806
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
|
|
4799
4807
|
declare namespace shaka.extern {
|
|
4800
|
-
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , colorGamut ? : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , isAudioMuxedInVideo : boolean , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , originalLanguage ? : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , videoLayout ? : string , width : number | null } ;
|
|
4808
|
+
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , colorGamut ? : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , isAudioMuxedInVideo : boolean , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage ? : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , videoLayout ? : string , width : number | null } ;
|
|
4801
4809
|
}
|
|
4802
4810
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
|
|
4803
4811
|
declare namespace shaka.extern {
|
|
@@ -2326,11 +2326,10 @@ shaka.util.TsParser = class {
|
|
|
2326
2326
|
* The code is based on hls.js
|
|
2327
2327
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
2328
2328
|
* @param {shaka.extern.MPEG_PES} pes
|
|
2329
|
-
* @param {?shaka.extern.VideoNalu
|
|
2330
|
-
* @param {?number=} lastState
|
|
2329
|
+
* @param {{nalu: ?shaka.extern.VideoNalu, state: ?number}} lastInfo
|
|
2331
2330
|
* @return {!Array.<shaka.extern.VideoNalu>}
|
|
2332
2331
|
*/
|
|
2333
|
-
parseNalus(pes,
|
|
2332
|
+
parseNalus(pes, lastInfo) {}
|
|
2334
2333
|
/**
|
|
2335
2334
|
* Return the ID3 metadata
|
|
2336
2335
|
* @return {!Array.<shaka.extern.ID3Metadata>}
|
|
@@ -3114,9 +3113,8 @@ shaka.text.UITextDisplayer = class {
|
|
|
3114
3113
|
* Constructor.
|
|
3115
3114
|
* @param {HTMLMediaElement} video
|
|
3116
3115
|
* @param {HTMLElement} videoContainer
|
|
3117
|
-
* @param {shaka.extern.TextDisplayerConfiguration} config
|
|
3118
3116
|
*/
|
|
3119
|
-
constructor(video, videoContainer
|
|
3117
|
+
constructor(video, videoContainer) {}
|
|
3120
3118
|
/**
|
|
3121
3119
|
* @override
|
|
3122
3120
|
*/
|
|
@@ -3824,6 +3822,11 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3824
3822
|
* @return {boolean}
|
|
3825
3823
|
*/
|
|
3826
3824
|
isRemotePlayback() {}
|
|
3825
|
+
/**
|
|
3826
|
+
* Indicate if the video has ended.
|
|
3827
|
+
* @return {boolean}
|
|
3828
|
+
*/
|
|
3829
|
+
isEnded() {}
|
|
3827
3830
|
};
|
|
3828
3831
|
/**
|
|
3829
3832
|
* In order to know what method of loading the player used for some content, we
|