@theoplayer/extended 3.2.3 → 3.5.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/THEOplayer.chromeless.js +8 -6
- package/THEOplayer.d.ts +236 -13
- package/THEOplayer.js +8 -7
- package/THEOplayer.transmux.asmjs.js +30 -0
- package/THEOplayer.transmux.js +30 -0
- package/THEOplayer.transmux.wasm +0 -0
- package/package.json +4 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.e.js +3 -3
- package/theoplayer.p.js +3 -3
- package/theoplayer.sw.js +3 -3
- package/ui.css +1 -1
package/THEOplayer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* THEOplayer
|
|
3
3
|
* https://www.theoplayer.com
|
|
4
4
|
*
|
|
5
|
-
* Version: 2022.
|
|
5
|
+
* Version: 2022.2.2 (3.5.0)
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -2101,6 +2101,10 @@ export declare class ChromelessPlayer implements EventDispatcher<PlayerEventMap>
|
|
|
2101
2101
|
* <br/> - Volume is represented by a floating point number between `0.0` and `1.0`.
|
|
2102
2102
|
*/
|
|
2103
2103
|
volume: number;
|
|
2104
|
+
/**
|
|
2105
|
+
* The latency manager for low latency live playback.
|
|
2106
|
+
*/
|
|
2107
|
+
latency: LatencyManager;
|
|
2104
2108
|
/**
|
|
2105
2109
|
* The canvas of the player.
|
|
2106
2110
|
*/
|
|
@@ -4121,6 +4125,8 @@ export declare interface HespApi extends EventDispatcher<HespApiEventMap> {
|
|
|
4121
4125
|
/**
|
|
4122
4126
|
* Can be set to change the latency of the player.
|
|
4123
4127
|
* A HespLatencyConfiguration object which gives latency configuration of the player.
|
|
4128
|
+
*
|
|
4129
|
+
* @deprecated use {@link ChromelessPlayer.latency} instead
|
|
4124
4130
|
*/
|
|
4125
4131
|
latency: HespLatencyConfiguration;
|
|
4126
4132
|
/**
|
|
@@ -5389,6 +5395,84 @@ export declare interface KeySystemConfiguration {
|
|
|
5389
5395
|
*/
|
|
5390
5396
|
export declare type KeySystemId = 'widevine' | 'fairplay' | 'playready';
|
|
5391
5397
|
|
|
5398
|
+
/**
|
|
5399
|
+
* The latency configuration for managing the live offset of the player.
|
|
5400
|
+
*
|
|
5401
|
+
* @public
|
|
5402
|
+
*/
|
|
5403
|
+
export declare interface LatencyConfiguration {
|
|
5404
|
+
/**
|
|
5405
|
+
* The start of the target live window.
|
|
5406
|
+
* If the live offset becomes smaller than this value, the player will slow down in order to increase the latency.
|
|
5407
|
+
*/
|
|
5408
|
+
minimumOffset: number;
|
|
5409
|
+
/**
|
|
5410
|
+
* The end of the target live window.
|
|
5411
|
+
* If the live offset becomes higher than this value, the player will speed down in order to decrease the latency.
|
|
5412
|
+
*/
|
|
5413
|
+
maximumOffset: number;
|
|
5414
|
+
/**
|
|
5415
|
+
* The live offset that the player will aim for. When correcting the offset by tuning the playbackRate,
|
|
5416
|
+
* the player will stop correcting when it reaches this value.
|
|
5417
|
+
*/
|
|
5418
|
+
targetOffset: number;
|
|
5419
|
+
/**
|
|
5420
|
+
* The live offset at which the player will automatically trigger a live seek.
|
|
5421
|
+
*/
|
|
5422
|
+
forceSeekOffset: number;
|
|
5423
|
+
/**
|
|
5424
|
+
* Indicates the minimum playbackRate used to slow down the player.
|
|
5425
|
+
*/
|
|
5426
|
+
minimumPlaybackRate: number;
|
|
5427
|
+
/**
|
|
5428
|
+
* Indicates the maximum playbackRate used to speed down the player.
|
|
5429
|
+
*/
|
|
5430
|
+
maximumPlaybackRate: number;
|
|
5431
|
+
/**
|
|
5432
|
+
* Updates multiple values of the current configuration.
|
|
5433
|
+
* @param configuration - The partial configuration with the replacement values.
|
|
5434
|
+
*/
|
|
5435
|
+
update(configuration: Partial<LatencyConfiguration>): void;
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
/**
|
|
5439
|
+
* The latency manager, used to control low-latency live playback.
|
|
5440
|
+
*
|
|
5441
|
+
* @public
|
|
5442
|
+
*/
|
|
5443
|
+
export declare interface LatencyManager {
|
|
5444
|
+
/**
|
|
5445
|
+
* Whether the latency manager is enabled and is chasing live playback.
|
|
5446
|
+
*
|
|
5447
|
+
* @remarks
|
|
5448
|
+
* <br/> - Can only be enabled during live playback.
|
|
5449
|
+
* <br/> - Only available for HESP sources.
|
|
5450
|
+
*/
|
|
5451
|
+
enabled: boolean;
|
|
5452
|
+
/**
|
|
5453
|
+
* The current latency.
|
|
5454
|
+
*
|
|
5455
|
+
* @remarks
|
|
5456
|
+
* <br/> - Only available during live playback.
|
|
5457
|
+
*/
|
|
5458
|
+
readonly currentLatency: number | undefined;
|
|
5459
|
+
/**
|
|
5460
|
+
* The LatencyConfiguration of the current source, if available.
|
|
5461
|
+
*
|
|
5462
|
+
* @remarks
|
|
5463
|
+
* <br/> - Only available during live playback.
|
|
5464
|
+
*/
|
|
5465
|
+
readonly streamConfiguration: Partial<Readonly<LatencyConfiguration>> | undefined;
|
|
5466
|
+
/**
|
|
5467
|
+
* Can be used to set a custom values for chasing live playback.
|
|
5468
|
+
*
|
|
5469
|
+
* @remarks
|
|
5470
|
+
* <br/> - The player might change the set values based on the streamConfiguration.
|
|
5471
|
+
* <br/> - This configuration is reset every time the player source changes.
|
|
5472
|
+
*/
|
|
5473
|
+
readonly configuration: LatencyConfiguration;
|
|
5474
|
+
}
|
|
5475
|
+
|
|
5392
5476
|
/**
|
|
5393
5477
|
* A request for a license.
|
|
5394
5478
|
* @public
|
|
@@ -7414,6 +7498,14 @@ export declare interface SourceConfiguration {
|
|
|
7414
7498
|
* @defaultValue `false`
|
|
7415
7499
|
*/
|
|
7416
7500
|
blockContentIfAdError?: boolean;
|
|
7501
|
+
/**
|
|
7502
|
+
* If set, only allow ads to play that are scheduled after this time.
|
|
7503
|
+
*
|
|
7504
|
+
* @remarks
|
|
7505
|
+
* <br/> - This setting is strictly after - e.g. setting `playAdsAfterTime` to 15 will cause the player to ignore an ad break scheduled to play at 15s.
|
|
7506
|
+
*
|
|
7507
|
+
*/
|
|
7508
|
+
playAdsAfterTime?: number;
|
|
7417
7509
|
/**
|
|
7418
7510
|
* Content protection configuration.
|
|
7419
7511
|
*/
|
|
@@ -7537,10 +7629,11 @@ export declare interface SourceDescription extends SourceConfiguration {
|
|
|
7537
7629
|
/**
|
|
7538
7630
|
* The integration identifier of a source specific to a pre-integration, represented by a value from the following list:
|
|
7539
7631
|
* <br/> - `'verizon-media'`: The source is a {@link VerizonMediaSource}
|
|
7632
|
+
* <br/> - `'mediatailor'`: The source contains the MediaTailor initialization url
|
|
7540
7633
|
*
|
|
7541
7634
|
* @public
|
|
7542
7635
|
*/
|
|
7543
|
-
export declare type SourceIntegrationId = 'verizon-media';
|
|
7636
|
+
export declare type SourceIntegrationId = 'verizon-media' | 'mediatailor';
|
|
7544
7637
|
|
|
7545
7638
|
/**
|
|
7546
7639
|
* A media resource or list of media resources.
|
|
@@ -7876,6 +7969,18 @@ declare interface TextTrack_2 extends Track, EventDispatcher<TextTrackEventMap_2
|
|
|
7876
7969
|
}
|
|
7877
7970
|
export { TextTrack_2 as TextTrack }
|
|
7878
7971
|
|
|
7972
|
+
/**
|
|
7973
|
+
* Fired when a cue is added to the text track.
|
|
7974
|
+
*
|
|
7975
|
+
* @public
|
|
7976
|
+
*/
|
|
7977
|
+
export declare interface TextTrackAddCueEvent extends Event_2<'addcue'> {
|
|
7978
|
+
/**
|
|
7979
|
+
* The cue that is added to the text track.
|
|
7980
|
+
*/
|
|
7981
|
+
readonly cue: TextTrackCue_2;
|
|
7982
|
+
}
|
|
7983
|
+
|
|
7879
7984
|
/**
|
|
7880
7985
|
* Represents a cue of a text track.
|
|
7881
7986
|
*
|
|
@@ -7920,6 +8025,30 @@ declare interface TextTrackCue_2 extends EventDispatcher<TextTrackCueEventMap_2>
|
|
|
7920
8025
|
}
|
|
7921
8026
|
export { TextTrackCue_2 as TextTrackCue }
|
|
7922
8027
|
|
|
8028
|
+
/**
|
|
8029
|
+
* Fired when the displaying cues of the text track has changed.
|
|
8030
|
+
*
|
|
8031
|
+
* @public
|
|
8032
|
+
*/
|
|
8033
|
+
export declare interface TextTrackCueChangeEvent extends Event_2<'cuechange'> {
|
|
8034
|
+
/**
|
|
8035
|
+
* The text track which displaying cues has changed.
|
|
8036
|
+
*/
|
|
8037
|
+
readonly track: TextTrack_2;
|
|
8038
|
+
}
|
|
8039
|
+
|
|
8040
|
+
/**
|
|
8041
|
+
* Fired when a text track cue is entered.
|
|
8042
|
+
*
|
|
8043
|
+
* @public
|
|
8044
|
+
*/
|
|
8045
|
+
export declare interface TextTrackCueEnterEvent extends Event_2<'enter'> {
|
|
8046
|
+
/**
|
|
8047
|
+
* The text track cue that is entered.
|
|
8048
|
+
*/
|
|
8049
|
+
readonly cue: TextTrackCue_2;
|
|
8050
|
+
}
|
|
8051
|
+
|
|
7923
8052
|
/**
|
|
7924
8053
|
* The events fired by the {@link TextTrackCue}.
|
|
7925
8054
|
*
|
|
@@ -7929,18 +8058,30 @@ declare interface TextTrackCueEventMap_2 {
|
|
|
7929
8058
|
/**
|
|
7930
8059
|
* Fired when the cue is entered.
|
|
7931
8060
|
*/
|
|
7932
|
-
enter:
|
|
8061
|
+
enter: TextTrackCueEnterEvent;
|
|
7933
8062
|
/**
|
|
7934
8063
|
* Fired when the cue is exited.
|
|
7935
8064
|
*/
|
|
7936
|
-
exit:
|
|
8065
|
+
exit: TextTrackCueExitEvent;
|
|
7937
8066
|
/**
|
|
7938
8067
|
* Fired when the cue is updated.
|
|
7939
8068
|
*/
|
|
7940
|
-
update:
|
|
8069
|
+
update: TextTrackCueUpdateEvent;
|
|
7941
8070
|
}
|
|
7942
8071
|
export { TextTrackCueEventMap_2 as TextTrackCueEventMap }
|
|
7943
8072
|
|
|
8073
|
+
/**
|
|
8074
|
+
* Fired when a text track cue is exited.
|
|
8075
|
+
*
|
|
8076
|
+
* @public
|
|
8077
|
+
*/
|
|
8078
|
+
export declare interface TextTrackCueExitEvent extends Event_2<'exit'> {
|
|
8079
|
+
/**
|
|
8080
|
+
* The text track cue that is exited.
|
|
8081
|
+
*/
|
|
8082
|
+
readonly cue: TextTrackCue_2;
|
|
8083
|
+
}
|
|
8084
|
+
|
|
7944
8085
|
/**
|
|
7945
8086
|
* List of text track cues.
|
|
7946
8087
|
*
|
|
@@ -7965,6 +8106,18 @@ declare interface TextTrackCueList_2 extends ReadonlyArray<TextTrackCue_2> {
|
|
|
7965
8106
|
}
|
|
7966
8107
|
export { TextTrackCueList_2 as TextTrackCueList }
|
|
7967
8108
|
|
|
8109
|
+
/**
|
|
8110
|
+
* Fired when a text track cue is updated.
|
|
8111
|
+
*
|
|
8112
|
+
* @public
|
|
8113
|
+
*/
|
|
8114
|
+
export declare interface TextTrackCueUpdateEvent extends Event_2<'update'> {
|
|
8115
|
+
/**
|
|
8116
|
+
* The text track cue that is updated.
|
|
8117
|
+
*/
|
|
8118
|
+
readonly cue: TextTrackCue_2;
|
|
8119
|
+
}
|
|
8120
|
+
|
|
7968
8121
|
/**
|
|
7969
8122
|
* Describes the configuration of a side-loaded text track.
|
|
7970
8123
|
*
|
|
@@ -8026,6 +8179,18 @@ export declare interface TextTrackDescription {
|
|
|
8026
8179
|
|
|
8027
8180
|
}
|
|
8028
8181
|
|
|
8182
|
+
/**
|
|
8183
|
+
* Fired when a cue of the text track has entered.
|
|
8184
|
+
*
|
|
8185
|
+
* @public
|
|
8186
|
+
*/
|
|
8187
|
+
export declare interface TextTrackEnterCueEvent extends Event_2<'entercue'> {
|
|
8188
|
+
/**
|
|
8189
|
+
* The cue from the text track that has entered.
|
|
8190
|
+
*/
|
|
8191
|
+
readonly cue: TextTrackCue_2;
|
|
8192
|
+
}
|
|
8193
|
+
|
|
8029
8194
|
/**
|
|
8030
8195
|
* An error thrown by a text track.
|
|
8031
8196
|
*
|
|
@@ -8074,31 +8239,31 @@ declare interface TextTrackEventMap_2 extends TrackEventMap {
|
|
|
8074
8239
|
/**
|
|
8075
8240
|
* Fired when a cue is added to the track.
|
|
8076
8241
|
*/
|
|
8077
|
-
addcue:
|
|
8242
|
+
addcue: TextTrackAddCueEvent;
|
|
8078
8243
|
/**
|
|
8079
8244
|
* Fired when a cue of the track is removed.
|
|
8080
8245
|
*/
|
|
8081
|
-
removecue:
|
|
8246
|
+
removecue: TextTrackRemoveCueEvent;
|
|
8082
8247
|
/**
|
|
8083
8248
|
* Fired when a cue of the track enters.
|
|
8084
8249
|
*/
|
|
8085
|
-
entercue:
|
|
8250
|
+
entercue: TextTrackEnterCueEvent;
|
|
8086
8251
|
/**
|
|
8087
8252
|
* Fired when a cue of the track exits.
|
|
8088
8253
|
*/
|
|
8089
|
-
exitcue:
|
|
8254
|
+
exitcue: TextTrackExitCueEvent;
|
|
8090
8255
|
/**
|
|
8091
|
-
* Fired when
|
|
8256
|
+
* Fired when the displaying cues of the text track changes.
|
|
8092
8257
|
*/
|
|
8093
|
-
cuechange:
|
|
8258
|
+
cuechange: TextTrackCueChangeEvent;
|
|
8094
8259
|
/**
|
|
8095
8260
|
* Fired when the text track's {@link TextTrack.readyState | ready state} changes.
|
|
8096
8261
|
*/
|
|
8097
|
-
readystatechange:
|
|
8262
|
+
readystatechange: TextTrackReadyStateChangeEvent;
|
|
8098
8263
|
/**
|
|
8099
8264
|
* Fired when the text track's {@link TextTrack."type" | type} changes.
|
|
8100
8265
|
*/
|
|
8101
|
-
typechange:
|
|
8266
|
+
typechange: TextTrackTypeChangeEvent;
|
|
8102
8267
|
/**
|
|
8103
8268
|
* Fired when an error occurred while loading or parsing the track.
|
|
8104
8269
|
*/
|
|
@@ -8106,6 +8271,18 @@ declare interface TextTrackEventMap_2 extends TrackEventMap {
|
|
|
8106
8271
|
}
|
|
8107
8272
|
export { TextTrackEventMap_2 as TextTrackEventMap }
|
|
8108
8273
|
|
|
8274
|
+
/**
|
|
8275
|
+
* Fired when a cue of the text track has exited.
|
|
8276
|
+
*
|
|
8277
|
+
* @public
|
|
8278
|
+
*/
|
|
8279
|
+
export declare interface TextTrackExitCueEvent extends Event_2<'exitcue'> {
|
|
8280
|
+
/**
|
|
8281
|
+
* The cue from the text track that has exited.
|
|
8282
|
+
*/
|
|
8283
|
+
readonly cue: TextTrackCue_2;
|
|
8284
|
+
}
|
|
8285
|
+
|
|
8109
8286
|
/**
|
|
8110
8287
|
* The ready state of a text track, represented by a value from the following list:
|
|
8111
8288
|
* <br/> - `0`: Indicates that the text track's cues have not been obtained.
|
|
@@ -8117,6 +8294,34 @@ export { TextTrackEventMap_2 as TextTrackEventMap }
|
|
|
8117
8294
|
*/
|
|
8118
8295
|
export declare type TextTrackReadyState = 0 | 1 | 2 | 3;
|
|
8119
8296
|
|
|
8297
|
+
/**
|
|
8298
|
+
* Fired when the {@link TextTrack.readyState | ready state} of the text track has changed.
|
|
8299
|
+
*
|
|
8300
|
+
* @public
|
|
8301
|
+
*/
|
|
8302
|
+
export declare interface TextTrackReadyStateChangeEvent extends Event_2<'readystatechange'> {
|
|
8303
|
+
/**
|
|
8304
|
+
* The text track which ready state has changed.
|
|
8305
|
+
*/
|
|
8306
|
+
readonly track: TextTrack_2;
|
|
8307
|
+
/**
|
|
8308
|
+
* The new {@link TextTrack.readyState | ready state} of the text track.
|
|
8309
|
+
*/
|
|
8310
|
+
readonly readyState: TextTrackReadyState;
|
|
8311
|
+
}
|
|
8312
|
+
|
|
8313
|
+
/**
|
|
8314
|
+
* Fired when a cue is removed from the text track.
|
|
8315
|
+
*
|
|
8316
|
+
* @public
|
|
8317
|
+
*/
|
|
8318
|
+
export declare interface TextTrackRemoveCueEvent extends Event_2<'removecue'> {
|
|
8319
|
+
/**
|
|
8320
|
+
* The cue that is removed from the text track.
|
|
8321
|
+
*/
|
|
8322
|
+
readonly cue: TextTrackCue_2;
|
|
8323
|
+
}
|
|
8324
|
+
|
|
8120
8325
|
/**
|
|
8121
8326
|
* List of text tracks.
|
|
8122
8327
|
*
|
|
@@ -8232,6 +8437,18 @@ export declare interface TextTrackStyleEventMap {
|
|
|
8232
8437
|
*/
|
|
8233
8438
|
export declare type TextTrackType = 'srt' | 'ttml' | 'webvtt' | 'emsg' | 'eventstream' | 'id3' | 'cea608' | 'daterange' | '';
|
|
8234
8439
|
|
|
8440
|
+
/**
|
|
8441
|
+
* Fired when the {@link TextTrack."type" | type} of the text track has changed.
|
|
8442
|
+
*
|
|
8443
|
+
* @public
|
|
8444
|
+
*/
|
|
8445
|
+
export declare interface TextTrackTypeChangeEvent extends Event_2<'typechange'> {
|
|
8446
|
+
/**
|
|
8447
|
+
* The text track which type has changed.
|
|
8448
|
+
*/
|
|
8449
|
+
readonly track: TextTrack_2;
|
|
8450
|
+
}
|
|
8451
|
+
|
|
8235
8452
|
/**
|
|
8236
8453
|
* Describes an ad break request.
|
|
8237
8454
|
*
|
|
@@ -10571,6 +10788,12 @@ export declare interface VerizonMediaSource extends BaseSource {
|
|
|
10571
10788
|
* <br/> - The order of a list of asset identifiers is the order their corresponding assets will be played in.
|
|
10572
10789
|
*/
|
|
10573
10790
|
id: VerizonMediaAssetId | VerizonMediaAssetId[] | VerizonMediaExternalId;
|
|
10791
|
+
/**
|
|
10792
|
+
* The prefix to use for Verizon Media Preplay API and Asset Info API requests.
|
|
10793
|
+
*
|
|
10794
|
+
* @defaultValue `'https://content.uplynk.com'`
|
|
10795
|
+
*/
|
|
10796
|
+
prefix?: string;
|
|
10574
10797
|
/**
|
|
10575
10798
|
* The query string parameters added to Verizon Media Preplay requests.
|
|
10576
10799
|
*
|