shaka-player 4.8.8 → 4.9.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/README.md +5 -0
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +5 -5
- package/dist/locales.js +33 -33
- package/dist/shaka-player.compiled.d.ts +39 -17
- package/dist/shaka-player.compiled.debug.d.ts +39 -17
- package/dist/shaka-player.compiled.debug.externs.js +32 -11
- package/dist/shaka-player.compiled.debug.js +574 -516
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +32 -11
- package/dist/shaka-player.compiled.js +1270 -1236
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +39 -17
- package/dist/shaka-player.ui.debug.d.ts +39 -17
- package/dist/shaka-player.ui.debug.externs.js +43 -22
- package/dist/shaka-player.ui.debug.js +601 -543
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +43 -22
- package/dist/shaka-player.ui.js +1483 -1448
- package/dist/shaka-player.ui.map +4 -4
- package/externs/shaka/manifest.js +11 -1
- package/externs/shaka/offline.js +3 -0
- package/externs/shaka/player.js +105 -12
- package/externs/tizen.js +1 -1
- package/lib/abr/simple_abr_manager.js +5 -0
- package/lib/ads/media_tailor_ad.js +11 -0
- package/lib/ads/media_tailor_ad_manager.js +37 -3
- package/lib/cea/cea608_data_channel.js +9 -0
- package/lib/cea/cea_decoder.js +6 -2
- package/lib/dash/dash_parser.js +655 -46
- package/lib/dash/mpd_utils.js +7 -8
- package/lib/dash/segment_template.js +65 -10
- package/lib/hls/hls_parser.js +92 -34
- package/lib/media/drm_engine.js +274 -40
- package/lib/media/manifest_filterer.js +10 -14
- package/lib/media/preload_manager.js +3 -10
- package/lib/media/segment_utils.js +14 -3
- package/lib/mss/mss_parser.js +2 -0
- package/lib/net/http_plugin_utils.js +2 -1
- package/lib/net/networking_engine.js +27 -0
- package/lib/offline/indexeddb/v1_storage_cell.js +1 -0
- package/lib/offline/indexeddb/v2_storage_cell.js +1 -0
- package/lib/offline/manifest_converter.js +2 -0
- package/lib/offline/storage.js +1 -0
- package/lib/player.js +221 -14
- package/lib/polyfill/media_capabilities.js +10 -35
- package/lib/util/config_utils.js +74 -6
- package/lib/util/error.js +7 -0
- package/lib/util/mp4_box_parsers.js +23 -2
- package/lib/util/periods.js +51 -28
- package/lib/util/platform.js +3 -1
- package/lib/util/player_configuration.js +20 -8
- package/lib/util/stream_utils.js +62 -30
- package/lib/util/tXml.js +74 -6
- package/package.json +2 -2
- package/support.html +1 -0
- package/ui/controls.js +4 -0
- package/ui/less/ad_controls.less +2 -1
- package/ui/resolution_selection.js +12 -3
|
@@ -79,6 +79,15 @@ declare namespace shaka {
|
|
|
79
79
|
* else.
|
|
80
80
|
*/
|
|
81
81
|
detach (keepAdManager ? : boolean ) : Promise < any > ;
|
|
82
|
+
/**
|
|
83
|
+
* Detach the player from the current media element, if any, and returns a
|
|
84
|
+
* PreloadManager that contains the loaded manifest of that asset, if any.
|
|
85
|
+
* Allows for the asset to be re-loaded by this player faster, in the future.
|
|
86
|
+
* When in src= mode, this detach but does not make a PreloadManager.
|
|
87
|
+
* Leaves the player in a state where it cannot play media, until it has been
|
|
88
|
+
* attached to something else.
|
|
89
|
+
*/
|
|
90
|
+
detachAndSavePreload (keepAdManager ? : boolean ) : Promise < shaka.media.PreloadManager | null > ;
|
|
82
91
|
/**
|
|
83
92
|
* Get the drm info used to initialize EME. If EME is not being used, this
|
|
84
93
|
* will return <code>null</code>. If the player is idle or has not initialized
|
|
@@ -183,6 +192,12 @@ declare namespace shaka {
|
|
|
183
192
|
*/
|
|
184
193
|
getMediaElement ( ) : HTMLMediaElement | null ;
|
|
185
194
|
getNetworkingEngine ( ) : shaka.net.NetworkingEngine | null ;
|
|
195
|
+
/**
|
|
196
|
+
* Return a copy of the current non default configuration. Modifications of
|
|
197
|
+
* the returned value will not affect the Player's active configuration.
|
|
198
|
+
* You must call <code>player.configure()</code> to make changes.
|
|
199
|
+
*/
|
|
200
|
+
getNonDefaultConfiguration ( ) : object ;
|
|
186
201
|
/**
|
|
187
202
|
* Get the playback rate of what is playing right now. If we are using trick
|
|
188
203
|
* play, this will return the trick play rate.
|
|
@@ -1575,6 +1590,7 @@ declare namespace shaka.net {
|
|
|
1575
1590
|
* Makes a network request and returns the resulting data.
|
|
1576
1591
|
*/
|
|
1577
1592
|
request (type : shaka.net.NetworkingEngine.RequestType , request : shaka.extern.Request , context ? : shaka.extern.RequestContext ) : shaka.net.NetworkingEngine.PendingRequest ;
|
|
1593
|
+
setForceHTTP (forceHTTP : boolean ) : any ;
|
|
1578
1594
|
setForceHTTPS (forceHTTPS : boolean ) : any ;
|
|
1579
1595
|
/**
|
|
1580
1596
|
* Removes a request filter.
|
|
@@ -3403,6 +3419,7 @@ declare namespace shaka.util {
|
|
|
3403
3419
|
* { manifest: { retryParameters: { maxAttempts: 1 }}}.
|
|
3404
3420
|
*/
|
|
3405
3421
|
static convertToConfigObject (fieldName : string , value : any ) : object ;
|
|
3422
|
+
static getDifferenceFromConfigObjects (object : object , base : object ) : object ;
|
|
3406
3423
|
static mergeConfigObjects (destination : object , source : object , template : object , overrides : object , path : string ) : boolean ;
|
|
3407
3424
|
}
|
|
3408
3425
|
}
|
|
@@ -3547,6 +3564,7 @@ declare namespace shaka.util.Error {
|
|
|
3547
3564
|
DASH_DUPLICATE_REPRESENTATION_ID = 4018.0 ,
|
|
3548
3565
|
DASH_EMPTY_ADAPTATION_SET = 4003.0 ,
|
|
3549
3566
|
DASH_EMPTY_PERIOD = 4004.0 ,
|
|
3567
|
+
DASH_INVALID_PATCH = 4052.0 ,
|
|
3550
3568
|
DASH_INVALID_XML = 4001.0 ,
|
|
3551
3569
|
DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED = 4009.0 ,
|
|
3552
3570
|
DASH_NO_COMMON_KEY_SYSTEM = 4008.0 ,
|
|
@@ -4091,7 +4109,7 @@ declare namespace shaka.util {
|
|
|
4091
4109
|
*/
|
|
4092
4110
|
class PeriodCombiner implements shaka.util.IReleasable {
|
|
4093
4111
|
private noStructuralTyping_shaka_util_PeriodCombiner : any;
|
|
4094
|
-
combinePeriods (periods : shaka.extern.Period [] , isDynamic : boolean ) : Promise < any > ;
|
|
4112
|
+
combinePeriods (periods : shaka.extern.Period [] , isDynamic : boolean , isPatchUpdate ? : boolean ) : Promise < any > ;
|
|
4095
4113
|
getImageStreams ( ) : shaka.extern.Stream [] ;
|
|
4096
4114
|
getTextStreams ( ) : shaka.extern.Stream [] ;
|
|
4097
4115
|
getVariants ( ) : shaka.extern.Variant [] ;
|
|
@@ -4116,7 +4134,7 @@ declare namespace shaka.util {
|
|
|
4116
4134
|
declare namespace shaka.util {
|
|
4117
4135
|
class StreamUtils {
|
|
4118
4136
|
private noStructuralTyping_shaka_util_StreamUtils : any;
|
|
4119
|
-
static meetsRestrictions (variant : shaka.extern.Variant , restrictions : shaka.extern.Restrictions , maxHwRes :
|
|
4137
|
+
static meetsRestrictions (variant : shaka.extern.Variant , restrictions : shaka.extern.Restrictions , maxHwRes : shaka.extern.Resolution ) : boolean ;
|
|
4120
4138
|
}
|
|
4121
4139
|
}
|
|
4122
4140
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
|
|
@@ -5263,7 +5281,7 @@ declare namespace shaka.extern {
|
|
|
5263
5281
|
}
|
|
5264
5282
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5265
5283
|
declare namespace shaka.extern {
|
|
5266
|
-
type Manifest = { ignoreManifestTimestampsInSegmentsMode : boolean , imageStreams : shaka.extern.Stream [] , minBufferTime : number , offlineSessionIds : string [] , presentationTimeline : shaka.media.PresentationTimeline , sequenceMode : boolean , serviceDescription : shaka.extern.ServiceDescription | null , textStreams : shaka.extern.Stream [] , type : string , variants : shaka.extern.Variant [] } ;
|
|
5284
|
+
type Manifest = { ignoreManifestTimestampsInSegmentsMode : boolean , imageStreams : shaka.extern.Stream [] , minBufferTime : number , nextUrl : string | null , offlineSessionIds : string [] , presentationTimeline : shaka.media.PresentationTimeline , sequenceMode : boolean , serviceDescription : shaka.extern.ServiceDescription | null , textStreams : shaka.extern.Stream [] , type : string , variants : shaka.extern.Variant [] } ;
|
|
5267
5285
|
}
|
|
5268
5286
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5269
5287
|
declare namespace shaka.extern {
|
|
@@ -5303,11 +5321,11 @@ declare namespace shaka.extern {
|
|
|
5303
5321
|
}
|
|
5304
5322
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5305
5323
|
declare namespace shaka.extern {
|
|
5306
|
-
type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null , minLatency : number | null , minPlaybackRate : number | null } ;
|
|
5324
|
+
type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null , minLatency : number | null , minPlaybackRate : number | null , targetLatency : number | null } ;
|
|
5307
5325
|
}
|
|
5308
5326
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5309
5327
|
declare namespace shaka.extern {
|
|
5310
|
-
type Stream = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closeSegmentIndex ? : ( ) => any , closedCaptions : Map < string , string > | null , codecs : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , fullMimeTypes : Set < string > , groupId : string | null , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , matchedStreams ? : any [] , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , videoLayout ? : string , width ? : number } ;
|
|
5328
|
+
type Stream = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closeSegmentIndex ? : ( ) => any , closedCaptions : Map < string , string > | null , codecs : string , colorGamut ? : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , fullMimeTypes : Set < string > , groupId : string | null , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , matchedStreams ? : any [] , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , videoLayout ? : string , width ? : number } ;
|
|
5311
5329
|
}
|
|
5312
5330
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5313
5331
|
declare namespace shaka.extern {
|
|
@@ -5630,7 +5648,7 @@ declare namespace shaka.extern {
|
|
|
5630
5648
|
}
|
|
5631
5649
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
|
|
5632
5650
|
declare namespace shaka.extern {
|
|
5633
|
-
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , 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 } ;
|
|
5651
|
+
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 , 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 } ;
|
|
5634
5652
|
}
|
|
5635
5653
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
|
|
5636
5654
|
declare namespace shaka.extern {
|
|
@@ -5674,11 +5692,11 @@ declare namespace shaka.extern {
|
|
|
5674
5692
|
}
|
|
5675
5693
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5676
5694
|
declare namespace shaka.extern {
|
|
5677
|
-
type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
|
|
5695
|
+
type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , cacheLoadThreshold : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
|
|
5678
5696
|
}
|
|
5679
5697
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5680
5698
|
declare namespace shaka.extern {
|
|
5681
|
-
type AdsConfiguration = { customPlayheadTracker : boolean , skipPlayDetection : boolean } ;
|
|
5699
|
+
type AdsConfiguration = { customPlayheadTracker : boolean , skipPlayDetection : boolean , supportsMultipleMediaElements : boolean } ;
|
|
5682
5700
|
}
|
|
5683
5701
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5684
5702
|
declare namespace shaka.extern {
|
|
@@ -5686,7 +5704,7 @@ declare namespace shaka.extern {
|
|
|
5686
5704
|
}
|
|
5687
5705
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5688
5706
|
declare namespace shaka.extern {
|
|
5689
|
-
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
5707
|
+
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , headers : { [ key: string ]: string } , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
5690
5708
|
}
|
|
5691
5709
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5692
5710
|
declare namespace shaka.extern {
|
|
@@ -5710,7 +5728,7 @@ declare namespace shaka.extern {
|
|
|
5710
5728
|
}
|
|
5711
5729
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5712
5730
|
declare namespace shaka.extern {
|
|
5713
|
-
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , enableAudioGroups : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , manifestPreprocessorTXml : (a : shaka.extern.xml.Node ) => any , multiTypeVariantsAllowed : boolean , sequenceMode : boolean , updatePeriod : number , useStreamOnceInPeriodFlattening : boolean , xlinkFailGracefully : boolean } ;
|
|
5731
|
+
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , enableAudioGroups : boolean , enableFastSwitching : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , manifestPreprocessorTXml : (a : shaka.extern.xml.Node ) => any , multiTypeVariantsAllowed : boolean , sequenceMode : boolean , updatePeriod : number , useStreamOnceInPeriodFlattening : boolean , xlinkFailGracefully : boolean } ;
|
|
5714
5732
|
}
|
|
5715
5733
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5716
5734
|
declare namespace shaka.extern {
|
|
@@ -5722,7 +5740,7 @@ declare namespace shaka.extern {
|
|
|
5722
5740
|
}
|
|
5723
5741
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5724
5742
|
declare namespace shaka.extern {
|
|
5725
|
-
type DrmSupportType = { persistentState : boolean } ;
|
|
5743
|
+
type DrmSupportType = { audioRobustnessLevels : string [] , encryptionSchemes : ( string | null ) [] , persistentState : boolean , videoRobustnessLevels : string [] } ;
|
|
5726
5744
|
}
|
|
5727
5745
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5728
5746
|
declare namespace shaka.extern {
|
|
@@ -5730,7 +5748,7 @@ declare namespace shaka.extern {
|
|
|
5730
5748
|
}
|
|
5731
5749
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5732
5750
|
declare namespace shaka.extern {
|
|
5733
|
-
type HlsManifestConfiguration = { allowLowLatencyByteRangeOptimization : boolean , defaultAudioCodec : string , defaultVideoCodec : string , disableCodecGuessing : boolean , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestProgramDateTimeForTypes : string [] , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
|
|
5751
|
+
type HlsManifestConfiguration = { allowLowLatencyByteRangeOptimization : boolean , defaultAudioCodec : string , defaultVideoCodec : string , disableClosedCaptionsDetection : boolean , disableCodecGuessing : boolean , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestProgramDateTimeForTypes : string [] , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
|
|
5734
5752
|
}
|
|
5735
5753
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5736
5754
|
declare namespace shaka.extern {
|
|
@@ -5790,7 +5808,11 @@ declare namespace shaka.extern {
|
|
|
5790
5808
|
}
|
|
5791
5809
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5792
5810
|
declare namespace shaka.extern {
|
|
5793
|
-
type
|
|
5811
|
+
type Resolution = { height : number , width : number } ;
|
|
5812
|
+
}
|
|
5813
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5814
|
+
declare namespace shaka.extern {
|
|
5815
|
+
type Restrictions = { maxBandwidth : number , maxChannelsCount : number , maxFrameRate : number , maxHeight : number , maxPixels : number , maxWidth : number , minBandwidth : number , minChannelsCount : number , minFrameRate : number , minHeight : number , minPixels : number , minWidth : number } ;
|
|
5794
5816
|
}
|
|
5795
5817
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5796
5818
|
declare namespace shaka.extern {
|
|
@@ -5802,11 +5824,11 @@ declare namespace shaka.extern {
|
|
|
5802
5824
|
}
|
|
5803
5825
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5804
5826
|
declare namespace shaka.extern {
|
|
5805
|
-
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : boolean , liveSyncMaxLatency : number , liveSyncMinLatency : number , liveSyncMinPlaybackRate : number , liveSyncPanicMode : boolean , liveSyncPanicThreshold : number , liveSyncPlaybackRate : number , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , useNativeHlsOnSafari : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
5827
|
+
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , clearDecodingCache : boolean , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTP : boolean , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : boolean , liveSyncMaxLatency : number , liveSyncMinLatency : number , liveSyncMinPlaybackRate : number , liveSyncPanicMode : boolean , liveSyncPanicThreshold : number , liveSyncPlaybackRate : number , liveSyncTargetLatencyTolerance : number , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , preloadNextUrlWindow : number , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , useNativeHlsOnSafari : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
5806
5828
|
}
|
|
5807
5829
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5808
5830
|
declare namespace shaka.extern {
|
|
5809
|
-
type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
|
|
5831
|
+
type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , hardwareResolution : shaka.extern.Resolution , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
|
|
5810
5832
|
}
|
|
5811
5833
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5812
5834
|
declare namespace shaka.extern {
|
|
@@ -5822,7 +5844,7 @@ declare namespace shaka.extern {
|
|
|
5822
5844
|
}
|
|
5823
5845
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5824
5846
|
declare namespace shaka.extern {
|
|
5825
|
-
type Track = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioMimeType : string | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalLanguage : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , videoLayout : string | null , videoMimeType : string | null , width : number | null } ;
|
|
5847
|
+
type Track = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioMimeType : string | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , colorGamut : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalLanguage : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , videoLayout : string | null , videoMimeType : string | null , width : number | null } ;
|
|
5826
5848
|
}
|
|
5827
5849
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5828
5850
|
declare namespace shaka.extern {
|
|
@@ -5974,7 +5996,7 @@ declare namespace webapis.productinfo {
|
|
|
5974
5996
|
}
|
|
5975
5997
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/tizen.js
|
|
5976
5998
|
declare namespace webapis.systeminfo {
|
|
5977
|
-
function getMaxVideoResolution ( ) :
|
|
5999
|
+
function getMaxVideoResolution ( ) : shaka.extern.Resolution ;
|
|
5978
6000
|
}
|
|
5979
6001
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
|
|
5980
6002
|
declare namespace ಠ_ಠ.clutz {
|
|
@@ -79,6 +79,15 @@ declare namespace shaka {
|
|
|
79
79
|
* else.
|
|
80
80
|
*/
|
|
81
81
|
detach (keepAdManager ? : boolean ) : Promise < any > ;
|
|
82
|
+
/**
|
|
83
|
+
* Detach the player from the current media element, if any, and returns a
|
|
84
|
+
* PreloadManager that contains the loaded manifest of that asset, if any.
|
|
85
|
+
* Allows for the asset to be re-loaded by this player faster, in the future.
|
|
86
|
+
* When in src= mode, this detach but does not make a PreloadManager.
|
|
87
|
+
* Leaves the player in a state where it cannot play media, until it has been
|
|
88
|
+
* attached to something else.
|
|
89
|
+
*/
|
|
90
|
+
detachAndSavePreload (keepAdManager ? : boolean ) : Promise < shaka.media.PreloadManager | null > ;
|
|
82
91
|
/**
|
|
83
92
|
* Get the drm info used to initialize EME. If EME is not being used, this
|
|
84
93
|
* will return <code>null</code>. If the player is idle or has not initialized
|
|
@@ -183,6 +192,12 @@ declare namespace shaka {
|
|
|
183
192
|
*/
|
|
184
193
|
getMediaElement ( ) : HTMLMediaElement | null ;
|
|
185
194
|
getNetworkingEngine ( ) : shaka.net.NetworkingEngine | null ;
|
|
195
|
+
/**
|
|
196
|
+
* Return a copy of the current non default configuration. Modifications of
|
|
197
|
+
* the returned value will not affect the Player's active configuration.
|
|
198
|
+
* You must call <code>player.configure()</code> to make changes.
|
|
199
|
+
*/
|
|
200
|
+
getNonDefaultConfiguration ( ) : object ;
|
|
186
201
|
/**
|
|
187
202
|
* Get the playback rate of what is playing right now. If we are using trick
|
|
188
203
|
* play, this will return the trick play rate.
|
|
@@ -1575,6 +1590,7 @@ declare namespace shaka.net {
|
|
|
1575
1590
|
* Makes a network request and returns the resulting data.
|
|
1576
1591
|
*/
|
|
1577
1592
|
request (type : shaka.net.NetworkingEngine.RequestType , request : shaka.extern.Request , context ? : shaka.extern.RequestContext ) : shaka.net.NetworkingEngine.PendingRequest ;
|
|
1593
|
+
setForceHTTP (forceHTTP : boolean ) : any ;
|
|
1578
1594
|
setForceHTTPS (forceHTTPS : boolean ) : any ;
|
|
1579
1595
|
/**
|
|
1580
1596
|
* Removes a request filter.
|
|
@@ -3403,6 +3419,7 @@ declare namespace shaka.util {
|
|
|
3403
3419
|
* { manifest: { retryParameters: { maxAttempts: 1 }}}.
|
|
3404
3420
|
*/
|
|
3405
3421
|
static convertToConfigObject (fieldName : string , value : any ) : object ;
|
|
3422
|
+
static getDifferenceFromConfigObjects (object : object , base : object ) : object ;
|
|
3406
3423
|
static mergeConfigObjects (destination : object , source : object , template : object , overrides : object , path : string ) : boolean ;
|
|
3407
3424
|
}
|
|
3408
3425
|
}
|
|
@@ -3547,6 +3564,7 @@ declare namespace shaka.util.Error {
|
|
|
3547
3564
|
DASH_DUPLICATE_REPRESENTATION_ID = 4018.0 ,
|
|
3548
3565
|
DASH_EMPTY_ADAPTATION_SET = 4003.0 ,
|
|
3549
3566
|
DASH_EMPTY_PERIOD = 4004.0 ,
|
|
3567
|
+
DASH_INVALID_PATCH = 4052.0 ,
|
|
3550
3568
|
DASH_INVALID_XML = 4001.0 ,
|
|
3551
3569
|
DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED = 4009.0 ,
|
|
3552
3570
|
DASH_NO_COMMON_KEY_SYSTEM = 4008.0 ,
|
|
@@ -4091,7 +4109,7 @@ declare namespace shaka.util {
|
|
|
4091
4109
|
*/
|
|
4092
4110
|
class PeriodCombiner implements shaka.util.IReleasable {
|
|
4093
4111
|
private noStructuralTyping_shaka_util_PeriodCombiner : any;
|
|
4094
|
-
combinePeriods (periods : shaka.extern.Period [] , isDynamic : boolean ) : Promise < any > ;
|
|
4112
|
+
combinePeriods (periods : shaka.extern.Period [] , isDynamic : boolean , isPatchUpdate ? : boolean ) : Promise < any > ;
|
|
4095
4113
|
getImageStreams ( ) : shaka.extern.Stream [] ;
|
|
4096
4114
|
getTextStreams ( ) : shaka.extern.Stream [] ;
|
|
4097
4115
|
getVariants ( ) : shaka.extern.Variant [] ;
|
|
@@ -4116,7 +4134,7 @@ declare namespace shaka.util {
|
|
|
4116
4134
|
declare namespace shaka.util {
|
|
4117
4135
|
class StreamUtils {
|
|
4118
4136
|
private noStructuralTyping_shaka_util_StreamUtils : any;
|
|
4119
|
-
static meetsRestrictions (variant : shaka.extern.Variant , restrictions : shaka.extern.Restrictions , maxHwRes :
|
|
4137
|
+
static meetsRestrictions (variant : shaka.extern.Variant , restrictions : shaka.extern.Restrictions , maxHwRes : shaka.extern.Resolution ) : boolean ;
|
|
4120
4138
|
}
|
|
4121
4139
|
}
|
|
4122
4140
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
@@ -5263,7 +5281,7 @@ declare namespace shaka.extern {
|
|
|
5263
5281
|
}
|
|
5264
5282
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5265
5283
|
declare namespace shaka.extern {
|
|
5266
|
-
type Manifest = { ignoreManifestTimestampsInSegmentsMode : boolean , imageStreams : shaka.extern.Stream [] , minBufferTime : number , offlineSessionIds : string [] , presentationTimeline : shaka.media.PresentationTimeline , sequenceMode : boolean , serviceDescription : shaka.extern.ServiceDescription | null , textStreams : shaka.extern.Stream [] , type : string , variants : shaka.extern.Variant [] } ;
|
|
5284
|
+
type Manifest = { ignoreManifestTimestampsInSegmentsMode : boolean , imageStreams : shaka.extern.Stream [] , minBufferTime : number , nextUrl : string | null , offlineSessionIds : string [] , presentationTimeline : shaka.media.PresentationTimeline , sequenceMode : boolean , serviceDescription : shaka.extern.ServiceDescription | null , textStreams : shaka.extern.Stream [] , type : string , variants : shaka.extern.Variant [] } ;
|
|
5267
5285
|
}
|
|
5268
5286
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5269
5287
|
declare namespace shaka.extern {
|
|
@@ -5303,11 +5321,11 @@ declare namespace shaka.extern {
|
|
|
5303
5321
|
}
|
|
5304
5322
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5305
5323
|
declare namespace shaka.extern {
|
|
5306
|
-
type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null , minLatency : number | null , minPlaybackRate : number | null } ;
|
|
5324
|
+
type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null , minLatency : number | null , minPlaybackRate : number | null , targetLatency : number | null } ;
|
|
5307
5325
|
}
|
|
5308
5326
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5309
5327
|
declare namespace shaka.extern {
|
|
5310
|
-
type Stream = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closeSegmentIndex ? : ( ) => any , closedCaptions : Map < string , string > | null , codecs : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , fullMimeTypes : Set < string > , groupId : string | null , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , matchedStreams ? : any [] , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , videoLayout ? : string , width ? : number } ;
|
|
5328
|
+
type Stream = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closeSegmentIndex ? : ( ) => any , closedCaptions : Map < string , string > | null , codecs : string , colorGamut ? : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , fullMimeTypes : Set < string > , groupId : string | null , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , matchedStreams ? : any [] , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , videoLayout ? : string , width ? : number } ;
|
|
5311
5329
|
}
|
|
5312
5330
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5313
5331
|
declare namespace shaka.extern {
|
|
@@ -5630,7 +5648,7 @@ declare namespace shaka.extern {
|
|
|
5630
5648
|
}
|
|
5631
5649
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
|
|
5632
5650
|
declare namespace shaka.extern {
|
|
5633
|
-
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , 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 } ;
|
|
5651
|
+
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 , 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 } ;
|
|
5634
5652
|
}
|
|
5635
5653
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
|
|
5636
5654
|
declare namespace shaka.extern {
|
|
@@ -5674,11 +5692,11 @@ declare namespace shaka.extern {
|
|
|
5674
5692
|
}
|
|
5675
5693
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5676
5694
|
declare namespace shaka.extern {
|
|
5677
|
-
type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
|
|
5695
|
+
type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , cacheLoadThreshold : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
|
|
5678
5696
|
}
|
|
5679
5697
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5680
5698
|
declare namespace shaka.extern {
|
|
5681
|
-
type AdsConfiguration = { customPlayheadTracker : boolean , skipPlayDetection : boolean } ;
|
|
5699
|
+
type AdsConfiguration = { customPlayheadTracker : boolean , skipPlayDetection : boolean , supportsMultipleMediaElements : boolean } ;
|
|
5682
5700
|
}
|
|
5683
5701
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5684
5702
|
declare namespace shaka.extern {
|
|
@@ -5686,7 +5704,7 @@ declare namespace shaka.extern {
|
|
|
5686
5704
|
}
|
|
5687
5705
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5688
5706
|
declare namespace shaka.extern {
|
|
5689
|
-
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
5707
|
+
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , headers : { [ key: string ]: string } , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
5690
5708
|
}
|
|
5691
5709
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5692
5710
|
declare namespace shaka.extern {
|
|
@@ -5710,7 +5728,7 @@ declare namespace shaka.extern {
|
|
|
5710
5728
|
}
|
|
5711
5729
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5712
5730
|
declare namespace shaka.extern {
|
|
5713
|
-
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , enableAudioGroups : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , manifestPreprocessorTXml : (a : shaka.extern.xml.Node ) => any , multiTypeVariantsAllowed : boolean , sequenceMode : boolean , updatePeriod : number , useStreamOnceInPeriodFlattening : boolean , xlinkFailGracefully : boolean } ;
|
|
5731
|
+
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , enableAudioGroups : boolean , enableFastSwitching : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , manifestPreprocessorTXml : (a : shaka.extern.xml.Node ) => any , multiTypeVariantsAllowed : boolean , sequenceMode : boolean , updatePeriod : number , useStreamOnceInPeriodFlattening : boolean , xlinkFailGracefully : boolean } ;
|
|
5714
5732
|
}
|
|
5715
5733
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5716
5734
|
declare namespace shaka.extern {
|
|
@@ -5722,7 +5740,7 @@ declare namespace shaka.extern {
|
|
|
5722
5740
|
}
|
|
5723
5741
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5724
5742
|
declare namespace shaka.extern {
|
|
5725
|
-
type DrmSupportType = { persistentState : boolean } ;
|
|
5743
|
+
type DrmSupportType = { audioRobustnessLevels : string [] , encryptionSchemes : ( string | null ) [] , persistentState : boolean , videoRobustnessLevels : string [] } ;
|
|
5726
5744
|
}
|
|
5727
5745
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5728
5746
|
declare namespace shaka.extern {
|
|
@@ -5730,7 +5748,7 @@ declare namespace shaka.extern {
|
|
|
5730
5748
|
}
|
|
5731
5749
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5732
5750
|
declare namespace shaka.extern {
|
|
5733
|
-
type HlsManifestConfiguration = { allowLowLatencyByteRangeOptimization : boolean , defaultAudioCodec : string , defaultVideoCodec : string , disableCodecGuessing : boolean , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestProgramDateTimeForTypes : string [] , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
|
|
5751
|
+
type HlsManifestConfiguration = { allowLowLatencyByteRangeOptimization : boolean , defaultAudioCodec : string , defaultVideoCodec : string , disableClosedCaptionsDetection : boolean , disableCodecGuessing : boolean , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestProgramDateTimeForTypes : string [] , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
|
|
5734
5752
|
}
|
|
5735
5753
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5736
5754
|
declare namespace shaka.extern {
|
|
@@ -5790,7 +5808,11 @@ declare namespace shaka.extern {
|
|
|
5790
5808
|
}
|
|
5791
5809
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5792
5810
|
declare namespace shaka.extern {
|
|
5793
|
-
type
|
|
5811
|
+
type Resolution = { height : number , width : number } ;
|
|
5812
|
+
}
|
|
5813
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5814
|
+
declare namespace shaka.extern {
|
|
5815
|
+
type Restrictions = { maxBandwidth : number , maxChannelsCount : number , maxFrameRate : number , maxHeight : number , maxPixels : number , maxWidth : number , minBandwidth : number , minChannelsCount : number , minFrameRate : number , minHeight : number , minPixels : number , minWidth : number } ;
|
|
5794
5816
|
}
|
|
5795
5817
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5796
5818
|
declare namespace shaka.extern {
|
|
@@ -5802,11 +5824,11 @@ declare namespace shaka.extern {
|
|
|
5802
5824
|
}
|
|
5803
5825
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5804
5826
|
declare namespace shaka.extern {
|
|
5805
|
-
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : boolean , liveSyncMaxLatency : number , liveSyncMinLatency : number , liveSyncMinPlaybackRate : number , liveSyncPanicMode : boolean , liveSyncPanicThreshold : number , liveSyncPlaybackRate : number , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , useNativeHlsOnSafari : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
5827
|
+
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , clearDecodingCache : boolean , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTP : boolean , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : boolean , liveSyncMaxLatency : number , liveSyncMinLatency : number , liveSyncMinPlaybackRate : number , liveSyncPanicMode : boolean , liveSyncPanicThreshold : number , liveSyncPlaybackRate : number , liveSyncTargetLatencyTolerance : number , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , preloadNextUrlWindow : number , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , useNativeHlsOnSafari : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
5806
5828
|
}
|
|
5807
5829
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5808
5830
|
declare namespace shaka.extern {
|
|
5809
|
-
type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
|
|
5831
|
+
type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , hardwareResolution : shaka.extern.Resolution , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
|
|
5810
5832
|
}
|
|
5811
5833
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5812
5834
|
declare namespace shaka.extern {
|
|
@@ -5822,7 +5844,7 @@ declare namespace shaka.extern {
|
|
|
5822
5844
|
}
|
|
5823
5845
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5824
5846
|
declare namespace shaka.extern {
|
|
5825
|
-
type Track = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioMimeType : string | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalLanguage : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , videoLayout : string | null , videoMimeType : string | null , width : number | null } ;
|
|
5847
|
+
type Track = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioMimeType : string | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , colorGamut : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalLanguage : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , videoLayout : string | null , videoMimeType : string | null , width : number | null } ;
|
|
5826
5848
|
}
|
|
5827
5849
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5828
5850
|
declare namespace shaka.extern {
|
|
@@ -5974,7 +5996,7 @@ declare namespace webapis.productinfo {
|
|
|
5974
5996
|
}
|
|
5975
5997
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/tizen.js
|
|
5976
5998
|
declare namespace webapis.systeminfo {
|
|
5977
|
-
function getMaxVideoResolution ( ) :
|
|
5999
|
+
function getMaxVideoResolution ( ) : shaka.extern.Resolution ;
|
|
5978
6000
|
}
|
|
5979
6001
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
|
|
5980
6002
|
declare namespace ಠ_ಠ.clutz {
|
|
@@ -344,6 +344,7 @@ shaka.util.Error.Code = {
|
|
|
344
344
|
'AES_128_INVALID_KEY_LENGTH': 4049,
|
|
345
345
|
'DASH_CONFLICTING_AES_128': 4050,
|
|
346
346
|
'DASH_UNSUPPORTED_AES_128': 4051,
|
|
347
|
+
'DASH_INVALID_PATCH': 4052,
|
|
347
348
|
'STREAMING_ENGINE_STARTUP_INVALID_STATE': 5006,
|
|
348
349
|
'NO_RECOGNIZED_KEY_SYSTEMS': 6000,
|
|
349
350
|
'REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE': 6001,
|
|
@@ -1426,7 +1427,7 @@ shaka.util.StreamUtils = class {
|
|
|
1426
1427
|
* @param {shaka.extern.Variant} variant
|
|
1427
1428
|
* @param {shaka.extern.Restrictions} restrictions
|
|
1428
1429
|
* Configured restrictions from the user.
|
|
1429
|
-
* @param {
|
|
1430
|
+
* @param {shaka.extern.Resolution} maxHwRes
|
|
1430
1431
|
* The maximum resolution the hardware can handle.
|
|
1431
1432
|
* This is applied separately from user restrictions because the setting
|
|
1432
1433
|
* should not be easily replaced by the user's configuration.
|
|
@@ -1650,6 +1651,10 @@ shaka.net.NetworkingEngine = class extends shaka.util.FakeEventTarget {
|
|
|
1650
1651
|
* Called when receive the response
|
|
1651
1652
|
*/
|
|
1652
1653
|
constructor(onProgressUpdated, onHeadersReceived, onDownloadFailed, onRequest, onRetry, onResponse) {}
|
|
1654
|
+
/**
|
|
1655
|
+
* @param {boolean} forceHTTP
|
|
1656
|
+
*/
|
|
1657
|
+
setForceHTTP(forceHTTP) {}
|
|
1653
1658
|
/**
|
|
1654
1659
|
* @param {boolean} forceHTTPS
|
|
1655
1660
|
*/
|
|
@@ -2942,6 +2947,12 @@ shaka.util.ConfigUtils = class {
|
|
|
2942
2947
|
* @return {!Object}
|
|
2943
2948
|
*/
|
|
2944
2949
|
static convertToConfigObject(fieldName, value) {}
|
|
2950
|
+
/**
|
|
2951
|
+
* @param {!Object} object
|
|
2952
|
+
* @param {!Object} base
|
|
2953
|
+
* @return {!Object}
|
|
2954
|
+
*/
|
|
2955
|
+
static getDifferenceFromConfigObjects(object, base) {}
|
|
2945
2956
|
};
|
|
2946
2957
|
/**
|
|
2947
2958
|
* @summary A set of FairPlay utility functions.
|
|
@@ -3359,6 +3370,17 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3359
3370
|
* @return {!Promise.<?shaka.media.PreloadManager>}
|
|
3360
3371
|
*/
|
|
3361
3372
|
unloadAndSavePreload(initializeMediaSource, keepAdManager) {}
|
|
3373
|
+
/**
|
|
3374
|
+
* Detach the player from the current media element, if any, and returns a
|
|
3375
|
+
* PreloadManager that contains the loaded manifest of that asset, if any.
|
|
3376
|
+
* Allows for the asset to be re-loaded by this player faster, in the future.
|
|
3377
|
+
* When in src= mode, this detach but does not make a PreloadManager.
|
|
3378
|
+
* Leaves the player in a state where it cannot play media, until it has been
|
|
3379
|
+
* attached to something else.
|
|
3380
|
+
* @param {boolean=} keepAdManager
|
|
3381
|
+
* @return {!Promise.<?shaka.media.PreloadManager>}
|
|
3382
|
+
*/
|
|
3383
|
+
detachAndSavePreload(keepAdManager) {}
|
|
3362
3384
|
/**
|
|
3363
3385
|
* Starts to preload a given asset, and returns a PreloadManager object that
|
|
3364
3386
|
* represents that preloading process.
|
|
@@ -3415,6 +3437,13 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3415
3437
|
* @return {shaka.extern.PlayerConfiguration}
|
|
3416
3438
|
*/
|
|
3417
3439
|
getConfiguration() {}
|
|
3440
|
+
/**
|
|
3441
|
+
* Return a copy of the current non default configuration. Modifications of
|
|
3442
|
+
* the returned value will not affect the Player's active configuration.
|
|
3443
|
+
* You must call <code>player.configure()</code> to make changes.
|
|
3444
|
+
* @return {!Object}
|
|
3445
|
+
*/
|
|
3446
|
+
getNonDefaultConfiguration() {}
|
|
3418
3447
|
/**
|
|
3419
3448
|
* Returns the ratio of video length buffered compared to buffering Goal
|
|
3420
3449
|
* @return {number}
|
|
@@ -4688,9 +4717,10 @@ shaka.util.PeriodCombiner = class {
|
|
|
4688
4717
|
/**
|
|
4689
4718
|
* @param {!Array.<shaka.extern.Period>} periods
|
|
4690
4719
|
* @param {boolean} isDynamic
|
|
4720
|
+
* @param {boolean=} isPatchUpdate
|
|
4691
4721
|
* @return {!Promise}
|
|
4692
4722
|
*/
|
|
4693
|
-
combinePeriods(periods, isDynamic) {}
|
|
4723
|
+
combinePeriods(periods, isDynamic, isPatchUpdate) {}
|
|
4694
4724
|
/**
|
|
4695
4725
|
* @param {boolean} allowed If set to true, multi-mimeType or multi-codec
|
|
4696
4726
|
* variants will be allowed.
|
|
@@ -5145,15 +5175,6 @@ shaka.polyfill.MediaCapabilities = class {
|
|
|
5145
5175
|
* @type {MediaCapabilities}
|
|
5146
5176
|
*/
|
|
5147
5177
|
shaka.polyfill.MediaCapabilities.originalMcap;
|
|
5148
|
-
/**
|
|
5149
|
-
* A cache that stores the MediaKeySystemAccess result of calling
|
|
5150
|
-
* `navigator.requestMediaKeySystemAccess` by a key combination of
|
|
5151
|
-
* video/audio codec and key system string.
|
|
5152
|
-
* @type {(Object<(!string), (!MediaKeySystemAccess)>)}
|
|
5153
|
-
*/
|
|
5154
|
-
shaka.polyfill.MediaCapabilities.memoizedMediaKeySystemAccessRequests_ = {
|
|
5155
|
-
|
|
5156
|
-
};
|
|
5157
5178
|
/**
|
|
5158
5179
|
* A cache that stores the canDisplayType result of calling
|
|
5159
5180
|
* `cast.__platform__.canDisplayType`.
|
|
@@ -5915,6 +5936,17 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement {
|
|
|
5915
5936
|
*/
|
|
5916
5937
|
shaka.ui.SeekBar.Factory = class {
|
|
5917
5938
|
};
|
|
5939
|
+
/**
|
|
5940
|
+
* @extends {shaka.ui.Element}
|
|
5941
|
+
* @final
|
|
5942
|
+
*/
|
|
5943
|
+
shaka.ui.SkipAdButton = class extends shaka.ui.Element {
|
|
5944
|
+
/**
|
|
5945
|
+
* @param {!HTMLElement} parent
|
|
5946
|
+
* @param {!shaka.ui.Controls} controls
|
|
5947
|
+
*/
|
|
5948
|
+
constructor(parent, controls) {}
|
|
5949
|
+
};
|
|
5918
5950
|
/**
|
|
5919
5951
|
* A container for custom video controls.
|
|
5920
5952
|
* @implements {shaka.util.IDestroyable}
|
|
@@ -6369,17 +6401,6 @@ shaka.ui.RewindButton = class extends shaka.ui.Element {
|
|
|
6369
6401
|
*/
|
|
6370
6402
|
constructor(parent, controls) {}
|
|
6371
6403
|
};
|
|
6372
|
-
/**
|
|
6373
|
-
* @extends {shaka.ui.Element}
|
|
6374
|
-
* @final
|
|
6375
|
-
*/
|
|
6376
|
-
shaka.ui.SkipAdButton = class extends shaka.ui.Element {
|
|
6377
|
-
/**
|
|
6378
|
-
* @param {!HTMLElement} parent
|
|
6379
|
-
* @param {!shaka.ui.Controls} controls
|
|
6380
|
-
*/
|
|
6381
|
-
constructor(parent, controls) {}
|
|
6382
|
-
};
|
|
6383
6404
|
/**
|
|
6384
6405
|
* @extends {shaka.ui.PlayButton}
|
|
6385
6406
|
* @final
|