@theoplayer/extended 3.4.0 → 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 +3 -3
- package/THEOplayer.d.ts +220 -12
- package/THEOplayer.js +3 -3
- 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/THEOplayer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* THEOplayer
|
|
3
3
|
* https://www.theoplayer.com
|
|
4
4
|
*
|
|
5
|
-
* Version: 2022.2.
|
|
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
|
|
@@ -7885,6 +7969,18 @@ declare interface TextTrack_2 extends Track, EventDispatcher<TextTrackEventMap_2
|
|
|
7885
7969
|
}
|
|
7886
7970
|
export { TextTrack_2 as TextTrack }
|
|
7887
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
|
+
|
|
7888
7984
|
/**
|
|
7889
7985
|
* Represents a cue of a text track.
|
|
7890
7986
|
*
|
|
@@ -7929,6 +8025,30 @@ declare interface TextTrackCue_2 extends EventDispatcher<TextTrackCueEventMap_2>
|
|
|
7929
8025
|
}
|
|
7930
8026
|
export { TextTrackCue_2 as TextTrackCue }
|
|
7931
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
|
+
|
|
7932
8052
|
/**
|
|
7933
8053
|
* The events fired by the {@link TextTrackCue}.
|
|
7934
8054
|
*
|
|
@@ -7938,18 +8058,30 @@ declare interface TextTrackCueEventMap_2 {
|
|
|
7938
8058
|
/**
|
|
7939
8059
|
* Fired when the cue is entered.
|
|
7940
8060
|
*/
|
|
7941
|
-
enter:
|
|
8061
|
+
enter: TextTrackCueEnterEvent;
|
|
7942
8062
|
/**
|
|
7943
8063
|
* Fired when the cue is exited.
|
|
7944
8064
|
*/
|
|
7945
|
-
exit:
|
|
8065
|
+
exit: TextTrackCueExitEvent;
|
|
7946
8066
|
/**
|
|
7947
8067
|
* Fired when the cue is updated.
|
|
7948
8068
|
*/
|
|
7949
|
-
update:
|
|
8069
|
+
update: TextTrackCueUpdateEvent;
|
|
7950
8070
|
}
|
|
7951
8071
|
export { TextTrackCueEventMap_2 as TextTrackCueEventMap }
|
|
7952
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
|
+
|
|
7953
8085
|
/**
|
|
7954
8086
|
* List of text track cues.
|
|
7955
8087
|
*
|
|
@@ -7974,6 +8106,18 @@ declare interface TextTrackCueList_2 extends ReadonlyArray<TextTrackCue_2> {
|
|
|
7974
8106
|
}
|
|
7975
8107
|
export { TextTrackCueList_2 as TextTrackCueList }
|
|
7976
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
|
+
|
|
7977
8121
|
/**
|
|
7978
8122
|
* Describes the configuration of a side-loaded text track.
|
|
7979
8123
|
*
|
|
@@ -8035,6 +8179,18 @@ export declare interface TextTrackDescription {
|
|
|
8035
8179
|
|
|
8036
8180
|
}
|
|
8037
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
|
+
|
|
8038
8194
|
/**
|
|
8039
8195
|
* An error thrown by a text track.
|
|
8040
8196
|
*
|
|
@@ -8083,31 +8239,31 @@ declare interface TextTrackEventMap_2 extends TrackEventMap {
|
|
|
8083
8239
|
/**
|
|
8084
8240
|
* Fired when a cue is added to the track.
|
|
8085
8241
|
*/
|
|
8086
|
-
addcue:
|
|
8242
|
+
addcue: TextTrackAddCueEvent;
|
|
8087
8243
|
/**
|
|
8088
8244
|
* Fired when a cue of the track is removed.
|
|
8089
8245
|
*/
|
|
8090
|
-
removecue:
|
|
8246
|
+
removecue: TextTrackRemoveCueEvent;
|
|
8091
8247
|
/**
|
|
8092
8248
|
* Fired when a cue of the track enters.
|
|
8093
8249
|
*/
|
|
8094
|
-
entercue:
|
|
8250
|
+
entercue: TextTrackEnterCueEvent;
|
|
8095
8251
|
/**
|
|
8096
8252
|
* Fired when a cue of the track exits.
|
|
8097
8253
|
*/
|
|
8098
|
-
exitcue:
|
|
8254
|
+
exitcue: TextTrackExitCueEvent;
|
|
8099
8255
|
/**
|
|
8100
|
-
* Fired when
|
|
8256
|
+
* Fired when the displaying cues of the text track changes.
|
|
8101
8257
|
*/
|
|
8102
|
-
cuechange:
|
|
8258
|
+
cuechange: TextTrackCueChangeEvent;
|
|
8103
8259
|
/**
|
|
8104
8260
|
* Fired when the text track's {@link TextTrack.readyState | ready state} changes.
|
|
8105
8261
|
*/
|
|
8106
|
-
readystatechange:
|
|
8262
|
+
readystatechange: TextTrackReadyStateChangeEvent;
|
|
8107
8263
|
/**
|
|
8108
8264
|
* Fired when the text track's {@link TextTrack."type" | type} changes.
|
|
8109
8265
|
*/
|
|
8110
|
-
typechange:
|
|
8266
|
+
typechange: TextTrackTypeChangeEvent;
|
|
8111
8267
|
/**
|
|
8112
8268
|
* Fired when an error occurred while loading or parsing the track.
|
|
8113
8269
|
*/
|
|
@@ -8115,6 +8271,18 @@ declare interface TextTrackEventMap_2 extends TrackEventMap {
|
|
|
8115
8271
|
}
|
|
8116
8272
|
export { TextTrackEventMap_2 as TextTrackEventMap }
|
|
8117
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
|
+
|
|
8118
8286
|
/**
|
|
8119
8287
|
* The ready state of a text track, represented by a value from the following list:
|
|
8120
8288
|
* <br/> - `0`: Indicates that the text track's cues have not been obtained.
|
|
@@ -8126,6 +8294,34 @@ export { TextTrackEventMap_2 as TextTrackEventMap }
|
|
|
8126
8294
|
*/
|
|
8127
8295
|
export declare type TextTrackReadyState = 0 | 1 | 2 | 3;
|
|
8128
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
|
+
|
|
8129
8325
|
/**
|
|
8130
8326
|
* List of text tracks.
|
|
8131
8327
|
*
|
|
@@ -8241,6 +8437,18 @@ export declare interface TextTrackStyleEventMap {
|
|
|
8241
8437
|
*/
|
|
8242
8438
|
export declare type TextTrackType = 'srt' | 'ttml' | 'webvtt' | 'emsg' | 'eventstream' | 'id3' | 'cea608' | 'daterange' | '';
|
|
8243
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
|
+
|
|
8244
8452
|
/**
|
|
8245
8453
|
* Describes an ad break request.
|
|
8246
8454
|
*
|