shaka-player 3.1.3 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +3 -0
- package/CHANGELOG.md +175 -3
- package/CONTRIBUTORS +3 -0
- package/README.md +4 -4
- package/build/generateExterns.js +1 -1
- package/build/types/polyfill +1 -0
- package/demo/common/asset.js +9 -7
- package/demo/common/assets.js +11 -2
- package/demo/common/message_ids.js +2 -1
- package/demo/config.js +5 -2
- package/demo/index.html +1 -1
- package/demo/locales/en.json +2 -1
- package/demo/locales/source.json +8 -4
- package/demo/main.js +2 -1
- package/dist/controls.css +2 -2
- package/dist/controls.css.map +1 -1
- package/dist/demo.compiled.debug.js +15 -15
- package/dist/demo.compiled.debug.map +2 -2
- package/dist/demo.compiled.js +15 -15
- package/dist/demo.compiled.map +2 -2
- package/dist/deps.js +22 -21
- package/dist/locales.js +36 -36
- package/dist/receiver.compiled.debug.js +9 -9
- package/dist/receiver.compiled.debug.map +2 -2
- package/dist/receiver.compiled.js +9 -9
- package/dist/receiver.compiled.map +2 -2
- package/dist/shaka-player.compiled.d.ts +58 -10
- package/dist/shaka-player.compiled.debug.d.ts +58 -10
- package/dist/shaka-player.compiled.debug.externs.js +777 -717
- package/dist/shaka-player.compiled.debug.js +639 -607
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +777 -717
- package/dist/shaka-player.compiled.js +826 -819
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +58 -10
- package/dist/shaka-player.ui.debug.d.ts +58 -10
- package/dist/shaka-player.ui.debug.externs.js +529 -469
- package/dist/shaka-player.ui.debug.js +676 -645
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +529 -469
- package/dist/shaka-player.ui.js +963 -955
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/fairplay.md +1 -1
- package/docs/tutorials/ui.md +5 -5
- package/externs/aria.js +6 -0
- package/externs/shaka/ads.js +24 -1
- package/externs/shaka/manifest.js +6 -1
- package/externs/shaka/offline.js +5 -0
- package/externs/shaka/player.js +53 -9
- package/externs/shaka/text.js +10 -10
- package/externs/texttrack.js +3 -0
- package/karma.conf.js +1 -0
- package/lib/ads/ad_manager.js +16 -15
- package/lib/ads/client_side_ad_manager.js +52 -88
- package/lib/ads/server_side_ad_manager.js +26 -12
- package/lib/cast/cast_proxy.js +11 -2
- package/lib/cast/cast_receiver.js +2 -1
- package/lib/cast/cast_sender.js +2 -2
- package/lib/cast/cast_utils.js +6 -1
- package/lib/cea/cea608_data_channel.js +56 -56
- package/lib/cea/cea608_memory.js +33 -33
- package/lib/cea/cea708_service.js +43 -43
- package/lib/cea/cea708_window.js +38 -38
- package/lib/cea/cea_decoder.js +13 -14
- package/lib/cea/cea_utils.js +23 -23
- package/lib/cea/dtvcc_packet_builder.js +7 -7
- package/lib/cea/i_caption_decoder.js +2 -3
- package/lib/cea/i_cea_parser.js +2 -2
- package/lib/cea/mp4_cea_parser.js +6 -6
- package/lib/dash/dash_parser.js +98 -2
- package/lib/dash/segment_list.js +1 -1
- package/lib/dash/segment_template.js +1 -1
- package/lib/hls/hls_parser.js +159 -29
- package/lib/media/closed_caption_parser.js +1 -2
- package/lib/media/drm_engine.js +169 -192
- package/lib/media/gap_jumping_controller.js +4 -2
- package/lib/media/media_source_engine.js +1 -2
- package/lib/media/segment_index.js +3 -1
- package/lib/media/segment_reference.js +19 -2
- package/lib/media/streaming_engine.js +8 -7
- package/lib/net/networking_engine.js +3 -1
- package/lib/offline/download_manager.js +1 -2
- 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 +3 -1
- package/lib/offline/storage.js +12 -14
- package/lib/player.js +437 -167
- package/lib/polyfill/aria.js +82 -0
- package/lib/polyfill/media_capabilities.js +7 -1
- package/lib/polyfill/mediasource.js +6 -0
- package/lib/polyfill/orientation.js +1 -1
- package/lib/polyfill/patchedmediakeys_apple.js +4 -4
- package/lib/polyfill/patchedmediakeys_ms.js +4 -4
- package/lib/polyfill/patchedmediakeys_webkit.js +4 -4
- package/lib/routing/walker.js +2 -3
- package/lib/text/mp4_ttml_parser.js +3 -0
- package/lib/text/srt_text_parser.js +4 -4
- package/lib/text/text_engine.js +16 -4
- package/lib/text/ttml_text_parser.js +5 -0
- package/lib/text/ui_text_displayer.js +85 -37
- package/lib/text/vtt_text_parser.js +2 -2
- package/lib/text/web_vtt_generator.js +55 -12
- package/lib/util/error.js +6 -0
- package/lib/util/fake_event.js +53 -7
- package/lib/util/manifest_parser_utils.js +1 -0
- package/lib/util/mp4_box_parsers.js +20 -20
- package/lib/util/multi_map.js +8 -0
- package/lib/util/periods.js +4 -1
- package/lib/util/platform.js +13 -1
- package/lib/util/player_configuration.js +13 -1
- package/lib/util/stream_utils.js +153 -85
- package/lib/util/xml_utils.js +31 -12
- package/package.json +1 -1
- package/roadmap.md +24 -22
- package/shaka-player.uncompiled.js +1 -0
- package/test/cast/cast_proxy_unit.js +12 -6
- package/test/cast/cast_utils_unit.js +2 -1
- package/test/cea/cea608_memory_unit.js +1 -1
- package/test/cea/cea708_service_unit.js +8 -8
- package/test/cea/cea708_window_unit.js +6 -6
- package/test/cea/cea_decoder_unit.js +1 -1
- package/test/cea/dtvcc_packet_builder_unit.js +2 -2
- package/test/dash/dash_parser_manifest_unit.js +230 -2
- package/test/hls/hls_parser_unit.js +255 -1
- package/test/media/closed_caption_parser_unit.js +6 -1
- package/test/media/drm_engine_integration.js +86 -12
- package/test/media/drm_engine_unit.js +353 -450
- package/test/offline/manifest_convert_unit.js +2 -0
- package/test/offline/storage_integration.js +9 -19
- package/test/player_integration.js +90 -0
- package/test/player_src_equals_integration.js +52 -0
- package/test/player_unit.js +11 -33
- package/test/test/assets/3675/chunk-stream0-00001.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00002.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00003.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00004.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00005.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00006.m4s +0 -0
- package/test/test/assets/3675/chunk-stream0-00007.m4s +0 -0
- package/test/test/assets/3675/dash_0.mpd +30 -0
- package/test/test/assets/3675/dash_1.mpd +30 -0
- package/test/test/assets/3675/dash_2.mpd +30 -0
- package/test/test/assets/3675/dash_3.mpd +30 -0
- package/test/test/assets/3675/dash_4.mpd +30 -0
- package/test/test/assets/3675/dash_5.mpd +26 -0
- package/test/test/assets/3675/init-stream0.m4s +0 -0
- package/test/test/assets/chapters.srt +11 -0
- package/test/test/assets/chapters.vtt +10 -0
- package/test/test/util/cea_utils.js +12 -12
- package/test/test/util/fake_ad_manager.js +8 -1
- package/test/test/util/manifest_generator.js +2 -0
- package/test/test/util/manifest_parser_util.js +3 -1
- package/test/text/ttml_text_parser_unit.js +9 -0
- package/test/text/ui_text_displayer_unit.js +29 -17
- package/test/text/web_vtt_generator_unit.js +81 -7
- package/test/ui/localization_unit.js +15 -14
- package/test/ui/text_displayer_layout_unit.js +13 -1
- package/test/util/stream_utils_unit.js +153 -10
- package/ui/airplay_button.js +1 -1
- package/ui/audio_language_selection.js +2 -5
- package/ui/cast_button.js +6 -9
- package/ui/constants.js +0 -3
- package/ui/controls.js +4 -6
- package/ui/fast_forward_button.js +2 -3
- package/ui/fullscreen_button.js +1 -3
- package/ui/language_utils.js +1 -1
- package/ui/less/containers.less +3 -7
- package/ui/locales/ru.json +6 -6
- package/ui/localization.js +28 -51
- package/ui/loop_button.js +1 -3
- package/ui/mute_button.js +1 -3
- package/ui/overflow_menu.js +2 -3
- package/ui/pip_button.js +7 -10
- package/ui/playback_rate_selection.js +3 -6
- package/ui/presentation_time.js +1 -3
- package/ui/resolution_selection.js +4 -7
- package/ui/rewind_button.js +2 -3
- package/ui/seek_bar.js +2 -4
- package/ui/spacer.js +1 -1
- package/ui/text_selection.js +8 -11
- package/ui/ui_utils.js +1 -1
- package/ui/volume_bar.js +1 -3
|
@@ -12,6 +12,12 @@ declare namespace shaka {
|
|
|
12
12
|
class Player extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
|
|
13
13
|
private noStructuralTyping_shaka_Player : any;
|
|
14
14
|
constructor (mediaElement ? : HTMLMediaElement | null , dependencyInjector ? : (a : shaka.Player | null ) => any ) ;
|
|
15
|
+
/**
|
|
16
|
+
* Adds the given chapters track to the loaded manifest. <code>load()</code>
|
|
17
|
+
* must resolve before calling. The presentation must have a duration.
|
|
18
|
+
* This returns the created track.
|
|
19
|
+
*/
|
|
20
|
+
addChaptersTrack (uri : string , language : string , mimeType ? : string ) : Promise < shaka.extern.Track > ;
|
|
15
21
|
/**
|
|
16
22
|
* Adds the given text track to the loaded manifest. <code>load()</code> must
|
|
17
23
|
* resolve before calling. The presentation must have a duration.
|
|
@@ -110,12 +116,24 @@ declare namespace shaka {
|
|
|
110
116
|
* player has not loaded any content, this will return an empty list.
|
|
111
117
|
*/
|
|
112
118
|
getAudioLanguagesAndRoles ( ) : shaka.extern.LanguageRole [] ;
|
|
119
|
+
/**
|
|
120
|
+
* Returns the ratio of video length buffered compared to buffering Goal
|
|
121
|
+
*/
|
|
122
|
+
getBufferFullness ( ) : number ;
|
|
113
123
|
/**
|
|
114
124
|
* Get information about what the player has buffered. If the player has not
|
|
115
125
|
* loaded content or is currently loading content, the buffered content will
|
|
116
126
|
* be empty.
|
|
117
127
|
*/
|
|
118
128
|
getBufferedInfo ( ) : shaka.extern.BufferedInfo ;
|
|
129
|
+
/**
|
|
130
|
+
* This returns the list of chapters.
|
|
131
|
+
*/
|
|
132
|
+
getChapters (language : string ) : shaka.extern.Chapter [] ;
|
|
133
|
+
/**
|
|
134
|
+
* Return a list of chapters tracks.
|
|
135
|
+
*/
|
|
136
|
+
getChaptersTracks ( ) : shaka.extern.TrackList ;
|
|
119
137
|
/**
|
|
120
138
|
* Return a copy of the current configuration. Modifications of the returned
|
|
121
139
|
* value will not affect the Player's active configuration. You must call
|
|
@@ -218,6 +236,10 @@ declare namespace shaka {
|
|
|
218
236
|
* If the player has not loaded content, this will return an empty list.
|
|
219
237
|
*/
|
|
220
238
|
getVariantTracks ( ) : shaka.extern.TrackList ;
|
|
239
|
+
/**
|
|
240
|
+
* Go to live in a live stream.
|
|
241
|
+
*/
|
|
242
|
+
goToLive ( ) : any ;
|
|
221
243
|
/**
|
|
222
244
|
* Check if the manifest contains only audio-only content. If the player has
|
|
223
245
|
* not loaded content, this will return <code>false</code>.
|
|
@@ -453,6 +475,7 @@ declare namespace shaka.ads {
|
|
|
453
475
|
*/
|
|
454
476
|
class AdManager extends shaka.util.FakeEventTarget implements shaka.extern.IAdManager , shaka.util.IReleasable {
|
|
455
477
|
private noStructuralTyping_shaka_ads_AdManager : any;
|
|
478
|
+
getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
456
479
|
getStats ( ) : shaka.extern.AdsStats ;
|
|
457
480
|
initClientSide (adContainer : any , video : any ) : any ;
|
|
458
481
|
initServerSide (adContainer : any , video : any ) : any ;
|
|
@@ -1096,7 +1119,7 @@ declare namespace shaka.media {
|
|
|
1096
1119
|
*/
|
|
1097
1120
|
class SegmentReference {
|
|
1098
1121
|
private noStructuralTyping_shaka_media_SegmentReference : any;
|
|
1099
|
-
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] ) ;
|
|
1122
|
+
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] , tilesLayout ? : string | null ) ;
|
|
1100
1123
|
/**
|
|
1101
1124
|
* Returns the offset from the start of the resource to the end of the
|
|
1102
1125
|
* segment, inclusive. A value of null indicates that the segment extends to
|
|
@@ -1116,6 +1139,10 @@ declare namespace shaka.media {
|
|
|
1116
1139
|
* Returns the segment's start time in seconds.
|
|
1117
1140
|
*/
|
|
1118
1141
|
getStartTime ( ) : number ;
|
|
1142
|
+
/**
|
|
1143
|
+
* Returns the segment's tiles layout. Only defined in image segments.
|
|
1144
|
+
*/
|
|
1145
|
+
getTilesLayout ( ) : string | null ;
|
|
1119
1146
|
/**
|
|
1120
1147
|
* Creates and returns the URIs of the resource containing the segment.
|
|
1121
1148
|
*/
|
|
@@ -1277,6 +1304,7 @@ declare namespace shaka.net.NetworkingEngine {
|
|
|
1277
1304
|
LICENSE = 2.0 ,
|
|
1278
1305
|
MANIFEST = 0.0 ,
|
|
1279
1306
|
SEGMENT = 1.0 ,
|
|
1307
|
+
SERVER_CERTIFICATE = 5.0 ,
|
|
1280
1308
|
TIMING = 4.0 ,
|
|
1281
1309
|
}
|
|
1282
1310
|
}
|
|
@@ -1411,6 +1439,16 @@ declare namespace shaka {
|
|
|
1411
1439
|
}
|
|
1412
1440
|
}
|
|
1413
1441
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
|
|
1442
|
+
declare namespace shaka.polyfill {
|
|
1443
|
+
class Aria {
|
|
1444
|
+
private noStructuralTyping_shaka_polyfill_Aria : any;
|
|
1445
|
+
/**
|
|
1446
|
+
* Install the polyfill if needed.
|
|
1447
|
+
*/
|
|
1448
|
+
static install ( ) : any ;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
|
|
1414
1452
|
declare namespace shaka.polyfill {
|
|
1415
1453
|
class EncryptionScheme {
|
|
1416
1454
|
private noStructuralTyping_shaka_polyfill_EncryptionScheme : any;
|
|
@@ -2648,6 +2686,7 @@ declare namespace shaka.util.Error {
|
|
|
2648
2686
|
REQUEST_FILTER_ERROR = 1006.0 ,
|
|
2649
2687
|
RESPONSE_FILTER_ERROR = 1007.0 ,
|
|
2650
2688
|
RESTRICTIONS_CANNOT_BE_MET = 4012.0 ,
|
|
2689
|
+
SERVER_CERTIFICATE_REQUEST_FAILED = 6017.0 ,
|
|
2651
2690
|
SERVER_CERTIFICATE_REQUIRED = 6015.0 ,
|
|
2652
2691
|
SS_AD_MANAGER_NOT_INITIALIZED = 10003.0 ,
|
|
2653
2692
|
SS_IMA_SDK_MISSING = 10002.0 ,
|
|
@@ -2751,7 +2790,7 @@ declare namespace shaka.util {
|
|
|
2751
2790
|
declare namespace shaka.util {
|
|
2752
2791
|
class FakeEvent extends Event {
|
|
2753
2792
|
private noStructuralTyping_shaka_util_FakeEvent : any;
|
|
2754
|
-
constructor (type : string , dict ? : object | null ) ;
|
|
2793
|
+
constructor (type : string , dict ? : Map < string , object | null > | null ) ;
|
|
2755
2794
|
}
|
|
2756
2795
|
}
|
|
2757
2796
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
|
|
@@ -3560,6 +3599,10 @@ declare namespace shaka.extern.AbrManager {
|
|
|
3560
3599
|
type SwitchCallback = (a : shaka.extern.Variant , b ? : boolean , c ? : number ) => any ;
|
|
3561
3600
|
}
|
|
3562
3601
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
|
|
3602
|
+
declare namespace shaka.extern {
|
|
3603
|
+
type AdCuePoint = { end : number | null , start : number } ;
|
|
3604
|
+
}
|
|
3605
|
+
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
|
|
3563
3606
|
declare namespace shaka.extern {
|
|
3564
3607
|
type AdsStats = { loadTimes : number [] , playedCompletely : number , skipped : number , started : number } ;
|
|
3565
3608
|
}
|
|
@@ -3599,6 +3642,7 @@ declare namespace shaka.extern {
|
|
|
3599
3642
|
* in the player.
|
|
3600
3643
|
*/
|
|
3601
3644
|
interface IAdManager extends EventTarget {
|
|
3645
|
+
getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
3602
3646
|
/**
|
|
3603
3647
|
* Get statistics for the current playback session. If the player is not
|
|
3604
3648
|
* playing content, this will return an empty stats object.
|
|
@@ -3648,7 +3692,7 @@ declare namespace shaka.extern {
|
|
|
3648
3692
|
}
|
|
3649
3693
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
|
|
3650
3694
|
declare namespace shaka.extern {
|
|
3651
|
-
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , sessionType : string , videoRobustness : string } ;
|
|
3695
|
+
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
3652
3696
|
}
|
|
3653
3697
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
|
|
3654
3698
|
declare namespace shaka.extern {
|
|
@@ -3824,7 +3868,7 @@ declare namespace shaka.extern {
|
|
|
3824
3868
|
}
|
|
3825
3869
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
|
|
3826
3870
|
declare namespace shaka.extern {
|
|
3827
|
-
type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , startTime : number , timestampOffset : number } ;
|
|
3871
|
+
type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , startTime : number , tilesLayout : string | null , timestampOffset : number } ;
|
|
3828
3872
|
}
|
|
3829
3873
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
|
|
3830
3874
|
declare namespace shaka.extern {
|
|
@@ -4000,7 +4044,7 @@ declare namespace shaka.extern {
|
|
|
4000
4044
|
}
|
|
4001
4045
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4002
4046
|
declare namespace shaka.extern {
|
|
4003
|
-
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , sessionType : string , videoRobustness : string } ;
|
|
4047
|
+
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
4004
4048
|
}
|
|
4005
4049
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4006
4050
|
declare namespace shaka.extern {
|
|
@@ -4012,11 +4056,15 @@ declare namespace shaka.extern {
|
|
|
4012
4056
|
}
|
|
4013
4057
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4014
4058
|
declare namespace shaka.extern {
|
|
4015
|
-
type
|
|
4059
|
+
type Chapter = { endTime : number , startTime : number , title : string } ;
|
|
4060
|
+
}
|
|
4061
|
+
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4062
|
+
declare namespace shaka.extern {
|
|
4063
|
+
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , xlinkFailGracefully : boolean } ;
|
|
4016
4064
|
}
|
|
4017
4065
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4018
4066
|
declare namespace shaka.extern {
|
|
4019
|
-
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
|
|
4067
|
+
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
|
|
4020
4068
|
}
|
|
4021
4069
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4022
4070
|
declare namespace shaka.extern {
|
|
@@ -4028,7 +4076,7 @@ declare namespace shaka.extern {
|
|
|
4028
4076
|
}
|
|
4029
4077
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4030
4078
|
declare namespace shaka.extern {
|
|
4031
|
-
type HlsManifestConfiguration = { ignoreTextStreamFailures : boolean , useFullSegmentsForStartTime : boolean } ;
|
|
4079
|
+
type HlsManifestConfiguration = { ignoreImageStreamFailures : boolean , ignoreTextStreamFailures : boolean , useFullSegmentsForStartTime : boolean } ;
|
|
4032
4080
|
}
|
|
4033
4081
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4034
4082
|
declare namespace shaka.extern {
|
|
@@ -4048,7 +4096,7 @@ declare namespace shaka.extern {
|
|
|
4048
4096
|
}
|
|
4049
4097
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4050
4098
|
declare namespace shaka.extern {
|
|
4051
|
-
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , drm : shaka.extern.DrmConfiguration , manifest : shaka.extern.ManifestConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioLanguage : string , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory
|
|
4099
|
+
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , drm : shaka.extern.DrmConfiguration , manifest : shaka.extern.ManifestConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioCodecs : string [] , preferredAudioLanguage : string , preferredDecodingAttributes : string [] , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , preferredVideoCodecs : string [] , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory } ;
|
|
4052
4100
|
}
|
|
4053
4101
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4054
4102
|
declare namespace shaka.extern {
|
|
@@ -4064,7 +4112,7 @@ declare namespace shaka.extern {
|
|
|
4064
4112
|
}
|
|
4065
4113
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4066
4114
|
declare namespace shaka.extern {
|
|
4067
|
-
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , forceTransmuxTS : boolean , gapDetectionThreshold : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , jumpLargeGaps : boolean , lowLatencyMode : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , smallGapLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , useNativeHlsOnSafari : boolean } ;
|
|
4115
|
+
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , forceTransmuxTS : boolean , gapDetectionThreshold : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , jumpLargeGaps : boolean , lowLatencyMode : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , smallGapLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsOnSafari : boolean } ;
|
|
4068
4116
|
}
|
|
4069
4117
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4070
4118
|
declare namespace shaka.extern {
|
|
@@ -12,6 +12,12 @@ declare namespace shaka {
|
|
|
12
12
|
class Player extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
|
|
13
13
|
private noStructuralTyping_shaka_Player : any;
|
|
14
14
|
constructor (mediaElement ? : HTMLMediaElement | null , dependencyInjector ? : (a : shaka.Player | null ) => any ) ;
|
|
15
|
+
/**
|
|
16
|
+
* Adds the given chapters track to the loaded manifest. <code>load()</code>
|
|
17
|
+
* must resolve before calling. The presentation must have a duration.
|
|
18
|
+
* This returns the created track.
|
|
19
|
+
*/
|
|
20
|
+
addChaptersTrack (uri : string , language : string , mimeType ? : string ) : Promise < shaka.extern.Track > ;
|
|
15
21
|
/**
|
|
16
22
|
* Adds the given text track to the loaded manifest. <code>load()</code> must
|
|
17
23
|
* resolve before calling. The presentation must have a duration.
|
|
@@ -110,12 +116,24 @@ declare namespace shaka {
|
|
|
110
116
|
* player has not loaded any content, this will return an empty list.
|
|
111
117
|
*/
|
|
112
118
|
getAudioLanguagesAndRoles ( ) : shaka.extern.LanguageRole [] ;
|
|
119
|
+
/**
|
|
120
|
+
* Returns the ratio of video length buffered compared to buffering Goal
|
|
121
|
+
*/
|
|
122
|
+
getBufferFullness ( ) : number ;
|
|
113
123
|
/**
|
|
114
124
|
* Get information about what the player has buffered. If the player has not
|
|
115
125
|
* loaded content or is currently loading content, the buffered content will
|
|
116
126
|
* be empty.
|
|
117
127
|
*/
|
|
118
128
|
getBufferedInfo ( ) : shaka.extern.BufferedInfo ;
|
|
129
|
+
/**
|
|
130
|
+
* This returns the list of chapters.
|
|
131
|
+
*/
|
|
132
|
+
getChapters (language : string ) : shaka.extern.Chapter [] ;
|
|
133
|
+
/**
|
|
134
|
+
* Return a list of chapters tracks.
|
|
135
|
+
*/
|
|
136
|
+
getChaptersTracks ( ) : shaka.extern.TrackList ;
|
|
119
137
|
/**
|
|
120
138
|
* Return a copy of the current configuration. Modifications of the returned
|
|
121
139
|
* value will not affect the Player's active configuration. You must call
|
|
@@ -218,6 +236,10 @@ declare namespace shaka {
|
|
|
218
236
|
* If the player has not loaded content, this will return an empty list.
|
|
219
237
|
*/
|
|
220
238
|
getVariantTracks ( ) : shaka.extern.TrackList ;
|
|
239
|
+
/**
|
|
240
|
+
* Go to live in a live stream.
|
|
241
|
+
*/
|
|
242
|
+
goToLive ( ) : any ;
|
|
221
243
|
/**
|
|
222
244
|
* Check if the manifest contains only audio-only content. If the player has
|
|
223
245
|
* not loaded content, this will return <code>false</code>.
|
|
@@ -453,6 +475,7 @@ declare namespace shaka.ads {
|
|
|
453
475
|
*/
|
|
454
476
|
class AdManager extends shaka.util.FakeEventTarget implements shaka.extern.IAdManager , shaka.util.IReleasable {
|
|
455
477
|
private noStructuralTyping_shaka_ads_AdManager : any;
|
|
478
|
+
getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
456
479
|
getStats ( ) : shaka.extern.AdsStats ;
|
|
457
480
|
initClientSide (adContainer : any , video : any ) : any ;
|
|
458
481
|
initServerSide (adContainer : any , video : any ) : any ;
|
|
@@ -1096,7 +1119,7 @@ declare namespace shaka.media {
|
|
|
1096
1119
|
*/
|
|
1097
1120
|
class SegmentReference {
|
|
1098
1121
|
private noStructuralTyping_shaka_media_SegmentReference : any;
|
|
1099
|
-
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] ) ;
|
|
1122
|
+
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] , tilesLayout ? : string | null ) ;
|
|
1100
1123
|
/**
|
|
1101
1124
|
* Returns the offset from the start of the resource to the end of the
|
|
1102
1125
|
* segment, inclusive. A value of null indicates that the segment extends to
|
|
@@ -1116,6 +1139,10 @@ declare namespace shaka.media {
|
|
|
1116
1139
|
* Returns the segment's start time in seconds.
|
|
1117
1140
|
*/
|
|
1118
1141
|
getStartTime ( ) : number ;
|
|
1142
|
+
/**
|
|
1143
|
+
* Returns the segment's tiles layout. Only defined in image segments.
|
|
1144
|
+
*/
|
|
1145
|
+
getTilesLayout ( ) : string | null ;
|
|
1119
1146
|
/**
|
|
1120
1147
|
* Creates and returns the URIs of the resource containing the segment.
|
|
1121
1148
|
*/
|
|
@@ -1277,6 +1304,7 @@ declare namespace shaka.net.NetworkingEngine {
|
|
|
1277
1304
|
LICENSE = 2.0 ,
|
|
1278
1305
|
MANIFEST = 0.0 ,
|
|
1279
1306
|
SEGMENT = 1.0 ,
|
|
1307
|
+
SERVER_CERTIFICATE = 5.0 ,
|
|
1280
1308
|
TIMING = 4.0 ,
|
|
1281
1309
|
}
|
|
1282
1310
|
}
|
|
@@ -1411,6 +1439,16 @@ declare namespace shaka {
|
|
|
1411
1439
|
}
|
|
1412
1440
|
}
|
|
1413
1441
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.debug.externs.js
|
|
1442
|
+
declare namespace shaka.polyfill {
|
|
1443
|
+
class Aria {
|
|
1444
|
+
private noStructuralTyping_shaka_polyfill_Aria : any;
|
|
1445
|
+
/**
|
|
1446
|
+
* Install the polyfill if needed.
|
|
1447
|
+
*/
|
|
1448
|
+
static install ( ) : any ;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.debug.externs.js
|
|
1414
1452
|
declare namespace shaka.polyfill {
|
|
1415
1453
|
class EncryptionScheme {
|
|
1416
1454
|
private noStructuralTyping_shaka_polyfill_EncryptionScheme : any;
|
|
@@ -2648,6 +2686,7 @@ declare namespace shaka.util.Error {
|
|
|
2648
2686
|
REQUEST_FILTER_ERROR = 1006.0 ,
|
|
2649
2687
|
RESPONSE_FILTER_ERROR = 1007.0 ,
|
|
2650
2688
|
RESTRICTIONS_CANNOT_BE_MET = 4012.0 ,
|
|
2689
|
+
SERVER_CERTIFICATE_REQUEST_FAILED = 6017.0 ,
|
|
2651
2690
|
SERVER_CERTIFICATE_REQUIRED = 6015.0 ,
|
|
2652
2691
|
SS_AD_MANAGER_NOT_INITIALIZED = 10003.0 ,
|
|
2653
2692
|
SS_IMA_SDK_MISSING = 10002.0 ,
|
|
@@ -2751,7 +2790,7 @@ declare namespace shaka.util {
|
|
|
2751
2790
|
declare namespace shaka.util {
|
|
2752
2791
|
class FakeEvent extends Event {
|
|
2753
2792
|
private noStructuralTyping_shaka_util_FakeEvent : any;
|
|
2754
|
-
constructor (type : string , dict ? : object | null ) ;
|
|
2793
|
+
constructor (type : string , dict ? : Map < string , object | null > | null ) ;
|
|
2755
2794
|
}
|
|
2756
2795
|
}
|
|
2757
2796
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.debug.externs.js
|
|
@@ -3560,6 +3599,10 @@ declare namespace shaka.extern.AbrManager {
|
|
|
3560
3599
|
type SwitchCallback = (a : shaka.extern.Variant , b ? : boolean , c ? : number ) => any ;
|
|
3561
3600
|
}
|
|
3562
3601
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
|
|
3602
|
+
declare namespace shaka.extern {
|
|
3603
|
+
type AdCuePoint = { end : number | null , start : number } ;
|
|
3604
|
+
}
|
|
3605
|
+
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/ads.js
|
|
3563
3606
|
declare namespace shaka.extern {
|
|
3564
3607
|
type AdsStats = { loadTimes : number [] , playedCompletely : number , skipped : number , started : number } ;
|
|
3565
3608
|
}
|
|
@@ -3599,6 +3642,7 @@ declare namespace shaka.extern {
|
|
|
3599
3642
|
* in the player.
|
|
3600
3643
|
*/
|
|
3601
3644
|
interface IAdManager extends EventTarget {
|
|
3645
|
+
getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
3602
3646
|
/**
|
|
3603
3647
|
* Get statistics for the current playback session. If the player is not
|
|
3604
3648
|
* playing content, this will return an empty stats object.
|
|
@@ -3648,7 +3692,7 @@ declare namespace shaka.extern {
|
|
|
3648
3692
|
}
|
|
3649
3693
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
|
|
3650
3694
|
declare namespace shaka.extern {
|
|
3651
|
-
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , sessionType : string , videoRobustness : string } ;
|
|
3695
|
+
type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
3652
3696
|
}
|
|
3653
3697
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/manifest.js
|
|
3654
3698
|
declare namespace shaka.extern {
|
|
@@ -3824,7 +3868,7 @@ declare namespace shaka.extern {
|
|
|
3824
3868
|
}
|
|
3825
3869
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
|
|
3826
3870
|
declare namespace shaka.extern {
|
|
3827
|
-
type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , startTime : number , timestampOffset : number } ;
|
|
3871
|
+
type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , startTime : number , tilesLayout : string | null , timestampOffset : number } ;
|
|
3828
3872
|
}
|
|
3829
3873
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/offline.js
|
|
3830
3874
|
declare namespace shaka.extern {
|
|
@@ -4000,7 +4044,7 @@ declare namespace shaka.extern {
|
|
|
4000
4044
|
}
|
|
4001
4045
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4002
4046
|
declare namespace shaka.extern {
|
|
4003
|
-
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , sessionType : string , videoRobustness : string } ;
|
|
4047
|
+
type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
|
|
4004
4048
|
}
|
|
4005
4049
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4006
4050
|
declare namespace shaka.extern {
|
|
@@ -4012,11 +4056,15 @@ declare namespace shaka.extern {
|
|
|
4012
4056
|
}
|
|
4013
4057
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4014
4058
|
declare namespace shaka.extern {
|
|
4015
|
-
type
|
|
4059
|
+
type Chapter = { endTime : number , startTime : number , title : string } ;
|
|
4060
|
+
}
|
|
4061
|
+
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4062
|
+
declare namespace shaka.extern {
|
|
4063
|
+
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , xlinkFailGracefully : boolean } ;
|
|
4016
4064
|
}
|
|
4017
4065
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4018
4066
|
declare namespace shaka.extern {
|
|
4019
|
-
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
|
|
4067
|
+
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
|
|
4020
4068
|
}
|
|
4021
4069
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4022
4070
|
declare namespace shaka.extern {
|
|
@@ -4028,7 +4076,7 @@ declare namespace shaka.extern {
|
|
|
4028
4076
|
}
|
|
4029
4077
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4030
4078
|
declare namespace shaka.extern {
|
|
4031
|
-
type HlsManifestConfiguration = { ignoreTextStreamFailures : boolean , useFullSegmentsForStartTime : boolean } ;
|
|
4079
|
+
type HlsManifestConfiguration = { ignoreImageStreamFailures : boolean , ignoreTextStreamFailures : boolean , useFullSegmentsForStartTime : boolean } ;
|
|
4032
4080
|
}
|
|
4033
4081
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4034
4082
|
declare namespace shaka.extern {
|
|
@@ -4048,7 +4096,7 @@ declare namespace shaka.extern {
|
|
|
4048
4096
|
}
|
|
4049
4097
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4050
4098
|
declare namespace shaka.extern {
|
|
4051
|
-
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , drm : shaka.extern.DrmConfiguration , manifest : shaka.extern.ManifestConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioLanguage : string , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory
|
|
4099
|
+
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , drm : shaka.extern.DrmConfiguration , manifest : shaka.extern.ManifestConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioCodecs : string [] , preferredAudioLanguage : string , preferredDecodingAttributes : string [] , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , preferredVideoCodecs : string [] , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory } ;
|
|
4052
4100
|
}
|
|
4053
4101
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4054
4102
|
declare namespace shaka.extern {
|
|
@@ -4064,7 +4112,7 @@ declare namespace shaka.extern {
|
|
|
4064
4112
|
}
|
|
4065
4113
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4066
4114
|
declare namespace shaka.extern {
|
|
4067
|
-
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , forceTransmuxTS : boolean , gapDetectionThreshold : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , jumpLargeGaps : boolean , lowLatencyMode : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , smallGapLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , useNativeHlsOnSafari : boolean } ;
|
|
4115
|
+
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , forceTransmuxTS : boolean , gapDetectionThreshold : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , jumpLargeGaps : boolean , lowLatencyMode : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , smallGapLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsOnSafari : boolean } ;
|
|
4068
4116
|
}
|
|
4069
4117
|
// Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/externs/shaka/player.js
|
|
4070
4118
|
declare namespace shaka.extern {
|