@theoplayer/extended 4.2.0 → 4.3.1
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 +1 -1
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.d.ts +447 -3
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/package.json +1 -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.4.
|
|
5
|
+
* Version: 2022.4.1 (4.3.1)
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -24,7 +24,8 @@ export declare interface ABRConfiguration {
|
|
|
24
24
|
* The amount which the player should buffer ahead of the current playback position, in seconds.
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* <br/> - This duration has a maximum of 60 seconds.
|
|
27
|
+
* <br/> - Before v4.3.0: This duration has a maximum of 60 seconds.
|
|
28
|
+
* <br/> - After v4.3.0: This duration has no maximum.
|
|
28
29
|
* <br/> - The player might reduce or ignore the configured amount because of device or performance constraints.
|
|
29
30
|
*
|
|
30
31
|
* @defaultValue `20`
|
|
@@ -363,6 +364,18 @@ export declare interface AddTrackEvent extends Event_2<'addtrack'> {
|
|
|
363
364
|
readonly track: Track;
|
|
364
365
|
}
|
|
365
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Fired when a new {@link View} has been added to the {@link MultiViewPlayer}.
|
|
369
|
+
*
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
export declare interface AddViewEvent extends Event_2<'addview'> {
|
|
373
|
+
/**
|
|
374
|
+
* The view that has been added.
|
|
375
|
+
*/
|
|
376
|
+
readonly view: View;
|
|
377
|
+
}
|
|
378
|
+
|
|
366
379
|
/**
|
|
367
380
|
* The integration of an ad break, represented by a value from the following list:
|
|
368
381
|
* <br/> - `'theo'`: Default ad playback.
|
|
@@ -1964,7 +1977,7 @@ export declare class ChromelessPlayer implements EventDispatcher<PlayerEventMap>
|
|
|
1964
1977
|
/**
|
|
1965
1978
|
* Returns a TimeRanges object that represents the ranges of the media resource that the player has buffered.
|
|
1966
1979
|
*/
|
|
1967
|
-
buffered: TimeRanges;
|
|
1980
|
+
readonly buffered: TimeRanges;
|
|
1968
1981
|
/**
|
|
1969
1982
|
* The clip API.
|
|
1970
1983
|
*/
|
|
@@ -3434,6 +3447,10 @@ export declare enum ErrorCode {
|
|
|
3434
3447
|
* The license has expired.
|
|
3435
3448
|
*/
|
|
3436
3449
|
LICENSE_EXPIRED = 2003,
|
|
3450
|
+
/**
|
|
3451
|
+
* The provided license does not contain the necessary feature.
|
|
3452
|
+
*/
|
|
3453
|
+
LICENSE_INVALID_FEATURE = 2004,
|
|
3437
3454
|
/**
|
|
3438
3455
|
* The source provided is not valid.
|
|
3439
3456
|
*/
|
|
@@ -5544,6 +5561,18 @@ export declare interface LatencyManager {
|
|
|
5544
5561
|
readonly configuration: LatencyConfiguration;
|
|
5545
5562
|
}
|
|
5546
5563
|
|
|
5564
|
+
/**
|
|
5565
|
+
* Fired when {@link MultiViewPlayer.layout} changes.
|
|
5566
|
+
*
|
|
5567
|
+
* @public
|
|
5568
|
+
*/
|
|
5569
|
+
export declare interface LayoutChangeEvent extends Event_2<'layoutchange'> {
|
|
5570
|
+
/**
|
|
5571
|
+
* The new layout of the player.
|
|
5572
|
+
*/
|
|
5573
|
+
readonly layout: MultiViewPlayerLayout;
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5547
5576
|
/**
|
|
5548
5577
|
* A request for a license.
|
|
5549
5578
|
* @public
|
|
@@ -6000,6 +6029,287 @@ export declare interface MoatConfiguration extends AnalyticsDescription {
|
|
|
6000
6029
|
partnerCode: string;
|
|
6001
6030
|
}
|
|
6002
6031
|
|
|
6032
|
+
/**
|
|
6033
|
+
* The MultiViewPlayer API.
|
|
6034
|
+
*
|
|
6035
|
+
* @remarks
|
|
6036
|
+
* <br/> - Available since v4.3.0
|
|
6037
|
+
* <br/> - Only available with the feature `'multiviewplayer'`.
|
|
6038
|
+
* <br/> - Only supported on modern browsers such as evergreen Chrome, Firefox and Safari. Not supported on Internet Explorer.
|
|
6039
|
+
*
|
|
6040
|
+
* @public
|
|
6041
|
+
*/
|
|
6042
|
+
export declare class MultiViewPlayer implements EventDispatcher<MultiViewPlayerEventMap> {
|
|
6043
|
+
/**
|
|
6044
|
+
* Returns all {@link View}s in their respective order.
|
|
6045
|
+
*/
|
|
6046
|
+
readonly views: ReadonlyArray<View>;
|
|
6047
|
+
/**
|
|
6048
|
+
* The currently selected layout.
|
|
6049
|
+
*/
|
|
6050
|
+
layout: MultiViewPlayerLayout;
|
|
6051
|
+
/**
|
|
6052
|
+
* Returns a TimeRanges object that represents the intersection of all buffered properties of the underlying players.
|
|
6053
|
+
*/
|
|
6054
|
+
readonly buffered: TimeRanges;
|
|
6055
|
+
/**
|
|
6056
|
+
* The current playback position of the player currently at position zero.
|
|
6057
|
+
*/
|
|
6058
|
+
currentTime: number;
|
|
6059
|
+
/**
|
|
6060
|
+
* Whether the player should immediately start playback.
|
|
6061
|
+
*
|
|
6062
|
+
* @remarks
|
|
6063
|
+
* <br/> - To autoplay with sound on certain platforms, {@link MultiViewPlayer.prepareWithUserAction} must be called at least once.
|
|
6064
|
+
* <br/> - To autoplay without sound, {@link PlayerConfiguration.mutedAutoplay} must be configured.
|
|
6065
|
+
*/
|
|
6066
|
+
autoplay: boolean;
|
|
6067
|
+
/**
|
|
6068
|
+
* Returns the minimum of all duration properties of the underlying players.
|
|
6069
|
+
*/
|
|
6070
|
+
readonly duration: number;
|
|
6071
|
+
/**
|
|
6072
|
+
* Whether any of the underlying players is ended.
|
|
6073
|
+
*/
|
|
6074
|
+
readonly ended: boolean;
|
|
6075
|
+
/**
|
|
6076
|
+
* Returns the last error that occurred of the underlying players.
|
|
6077
|
+
*/
|
|
6078
|
+
readonly errorObject: THEOplayerError | undefined;
|
|
6079
|
+
/**
|
|
6080
|
+
* Whether all the underlying players are muted.
|
|
6081
|
+
*/
|
|
6082
|
+
muted: boolean;
|
|
6083
|
+
/**
|
|
6084
|
+
* Whether any of the underlying players is muted.
|
|
6085
|
+
*/
|
|
6086
|
+
readonly paused: boolean;
|
|
6087
|
+
/**
|
|
6088
|
+
* Returns the playbackRate of the player at position zero.
|
|
6089
|
+
*/
|
|
6090
|
+
playbackRate: number;
|
|
6091
|
+
/**
|
|
6092
|
+
* Returns the intersection of all played properties of the underlying players.
|
|
6093
|
+
*/
|
|
6094
|
+
readonly played: TimeRanges;
|
|
6095
|
+
/**
|
|
6096
|
+
* Returns the minimum of all readyState properties of the underlying players.
|
|
6097
|
+
*/
|
|
6098
|
+
readonly readyState: number;
|
|
6099
|
+
/**
|
|
6100
|
+
* Returns the intersection of all seekable properties of the underlying players.
|
|
6101
|
+
*/
|
|
6102
|
+
readonly seekable: TimeRanges;
|
|
6103
|
+
/**
|
|
6104
|
+
* Whether any of the underlying players is seeking.
|
|
6105
|
+
*/
|
|
6106
|
+
readonly seeking: boolean;
|
|
6107
|
+
/**
|
|
6108
|
+
* Returns the volume of the player at position zero.
|
|
6109
|
+
*/
|
|
6110
|
+
volume: number;
|
|
6111
|
+
/**
|
|
6112
|
+
* Creates a new view.
|
|
6113
|
+
*
|
|
6114
|
+
* @param label - The name belonging to a view which is used in the multiview menu.
|
|
6115
|
+
* @param source - The SourceDescription set on the view.
|
|
6116
|
+
* @param description - A short description of the view which will be displayed on top.
|
|
6117
|
+
*
|
|
6118
|
+
* @remarks
|
|
6119
|
+
* <br/> - If the given label clashes with an existing label, the existing view will be returned.
|
|
6120
|
+
* <br/> - A player which is created is with position set to the length of {@link MultiViewPlayer.views}.
|
|
6121
|
+
*/
|
|
6122
|
+
load(label: string, source: SourceDescription, description?: string): View;
|
|
6123
|
+
/**
|
|
6124
|
+
* Calls play() on all underlying players and starts in-sync playback.
|
|
6125
|
+
*/
|
|
6126
|
+
play(): void;
|
|
6127
|
+
/**
|
|
6128
|
+
* Calls pause() on all underlying players.
|
|
6129
|
+
*/
|
|
6130
|
+
pause(): void;
|
|
6131
|
+
/**
|
|
6132
|
+
* Stops playback and removes all views.
|
|
6133
|
+
*/
|
|
6134
|
+
stop(): void;
|
|
6135
|
+
/**
|
|
6136
|
+
* Calls destroy() on all underlying players and removes all views.
|
|
6137
|
+
*/
|
|
6138
|
+
destroy(): void;
|
|
6139
|
+
/**
|
|
6140
|
+
* Enables fullscreen mode on the element of the MultiViewPlayer.
|
|
6141
|
+
*/
|
|
6142
|
+
requestFullscreen(options?: FullscreenOptions): void;
|
|
6143
|
+
/**
|
|
6144
|
+
* Disables fullscreen mode.
|
|
6145
|
+
*/
|
|
6146
|
+
exitFullscreen(): void;
|
|
6147
|
+
/**
|
|
6148
|
+
* Calls prepareWithUserAction() on all underlying players.
|
|
6149
|
+
*/
|
|
6150
|
+
prepareWithUserAction(): void;
|
|
6151
|
+
/**
|
|
6152
|
+
* {@inheritDoc EventDispatcher.addEventListener}
|
|
6153
|
+
*/
|
|
6154
|
+
addEventListener<TType extends StringKeyOf<MultiViewPlayerEventMap>>(type: TType | readonly TType[], listener: EventListener_2<MultiViewPlayerEventMap[TType]>): void;
|
|
6155
|
+
/**
|
|
6156
|
+
* {@inheritDoc EventDispatcher.removeEventListener}
|
|
6157
|
+
*/
|
|
6158
|
+
removeEventListener<TType extends StringKeyOf<MultiViewPlayerEventMap>>(type: TType | readonly TType[], listener: EventListener_2<MultiViewPlayerEventMap[TType]>): void;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6161
|
+
/**
|
|
6162
|
+
* The MultiViewPlayer API
|
|
6163
|
+
*
|
|
6164
|
+
* @public
|
|
6165
|
+
*/
|
|
6166
|
+
export declare interface MultiViewPlayerEventMap {
|
|
6167
|
+
/**
|
|
6168
|
+
* Fired when the first {@link View} enters {@link MultiViewPlayer.views} or all views are removed.
|
|
6169
|
+
*/
|
|
6170
|
+
sourcechange: SourceChangeEvent;
|
|
6171
|
+
/**
|
|
6172
|
+
* Fired when {@link MultiViewPlayer.paused} changes to `false`.
|
|
6173
|
+
*
|
|
6174
|
+
* @remarks
|
|
6175
|
+
* <br/> - Either fired after the play() method has returned, or when the {@link MultiViewPlayer.autoplay} attribute has caused playback to begin.
|
|
6176
|
+
*/
|
|
6177
|
+
play: PlayEvent;
|
|
6178
|
+
/**
|
|
6179
|
+
* Fired when {@link MultiViewPlayer.paused} changes to `true`.
|
|
6180
|
+
*
|
|
6181
|
+
* @remarks
|
|
6182
|
+
* <br/> - Fired after the `pause()` method has returned.
|
|
6183
|
+
*/
|
|
6184
|
+
pause: PauseEvent;
|
|
6185
|
+
/**
|
|
6186
|
+
* Fired when {@link MultiViewPlayer.seeking} changes to `true`, and the player has started seeking to a new position.
|
|
6187
|
+
*/
|
|
6188
|
+
seeking: SeekingEvent;
|
|
6189
|
+
/**
|
|
6190
|
+
* Fired when {@link MultiViewPlayer.seeking} changes to `false` after the current playback position was changed.
|
|
6191
|
+
*/
|
|
6192
|
+
seeked: SeekedEvent;
|
|
6193
|
+
/**
|
|
6194
|
+
* Fired when the current playback position changed as part of normal playback or in an especially interesting way, for example discontinuously.
|
|
6195
|
+
*/
|
|
6196
|
+
timeupdate: TimeUpdateEvent;
|
|
6197
|
+
/**
|
|
6198
|
+
* Fired when playback has stopped because the end of the media resource was reached.
|
|
6199
|
+
*/
|
|
6200
|
+
ended: EndedEvent;
|
|
6201
|
+
/**
|
|
6202
|
+
* Fired when playback is ready to start after having been paused or delayed due to lack of media data.
|
|
6203
|
+
*/
|
|
6204
|
+
playing: PlayingEvent;
|
|
6205
|
+
/**
|
|
6206
|
+
* Fired when playback has stopped because the next frame is not available, but the player expects that frame to become available in due course.
|
|
6207
|
+
*/
|
|
6208
|
+
waiting: WaitingEvent;
|
|
6209
|
+
/**
|
|
6210
|
+
* Fired when {@link MultiViewPlayer.readyState} changes.
|
|
6211
|
+
*/
|
|
6212
|
+
readystatechange: ReadyStateChangeEvent;
|
|
6213
|
+
/**
|
|
6214
|
+
* Fired when the player determines the duration and dimensions of the media resources for all {@link View}s.
|
|
6215
|
+
*
|
|
6216
|
+
* @remarks
|
|
6217
|
+
* <br/> - See {@link https://html.spec.whatwg.org/multipage/media.html#mediaevents:dom-media-readystate | HTML media - network state events}.
|
|
6218
|
+
* <br/> - The {@link MultiViewPlayer.seekable | seekable range} should be available as soon as the {@link MultiViewPlayer.duration | duration} is known. However, certain browsers (e.g. Safari) do not make it available until the `loadeddata` event is fired.
|
|
6219
|
+
*/
|
|
6220
|
+
loadedmetadata: LoadedMetadataEvent;
|
|
6221
|
+
/**
|
|
6222
|
+
* Fired when the player can render the media data at the current playback position for the first time.
|
|
6223
|
+
*
|
|
6224
|
+
* @remarks
|
|
6225
|
+
* <br/> - See {@link https://html.spec.whatwg.org/multipage/media.html#mediaevents:dom-media-readystate | HTML media - network state events}.
|
|
6226
|
+
*/
|
|
6227
|
+
loadeddata: LoadedDataEvent;
|
|
6228
|
+
/**
|
|
6229
|
+
* Fired when the player can resume playback of the media data.
|
|
6230
|
+
*
|
|
6231
|
+
* @remarks
|
|
6232
|
+
* <br/> - In comparison to `canplaythrough`, the player estimates that if playback were to be started now, the media resource could not be rendered at the current playback rate up to its end without having to stop for further buffering of content.
|
|
6233
|
+
* <br/> - See {@link https://html.spec.whatwg.org/multipage/media.html#mediaevents:dom-media-readystate | HTML media - network state events}.
|
|
6234
|
+
*/
|
|
6235
|
+
canplay: CanPlayEvent;
|
|
6236
|
+
/**
|
|
6237
|
+
* Fired when the player can resume playback of the media data and buffering is unlikely.
|
|
6238
|
+
*
|
|
6239
|
+
* @remarks
|
|
6240
|
+
* <br/> - In comparison to `canplay`, the player estimates that if playback were to be started now, the media resource could be rendered at the current playback rate all the way to its end without having to stop for further buffering.
|
|
6241
|
+
* <br/> - See {@link https://html.spec.whatwg.org/multipage/media.html#mediaevents:dom-media-readystate | HTML media - network state events}.
|
|
6242
|
+
*/
|
|
6243
|
+
canplaythrough: CanPlayThroughEvent;
|
|
6244
|
+
/**
|
|
6245
|
+
* Fired when the player has started loading the manifest of all {@link View}s.
|
|
6246
|
+
*
|
|
6247
|
+
* @remarks
|
|
6248
|
+
* <br/> - See {@link https://html.spec.whatwg.org/multipage/media.html#mediaevents:dom-media-networkstate | HTML media - network state events}.
|
|
6249
|
+
*/
|
|
6250
|
+
loadstart: Event_2<'loadstart'>;
|
|
6251
|
+
/**
|
|
6252
|
+
* Fired when the player loaded media data.
|
|
6253
|
+
*
|
|
6254
|
+
* @remarks
|
|
6255
|
+
* <br/> - For DASH streams, the event is fired every 350ms or for every byte received whichever is least frequent.
|
|
6256
|
+
* <br/> - See {@link https://html.spec.whatwg.org/multipage/media.html#mediaevents:dom-media-networkstate | HTML media - network state events}.
|
|
6257
|
+
*/
|
|
6258
|
+
progress: ProgressEvent_2;
|
|
6259
|
+
/**
|
|
6260
|
+
* Fired when {@link MultiViewPlayer.duration} changes.
|
|
6261
|
+
*
|
|
6262
|
+
* @remarks
|
|
6263
|
+
* <br/> - Fired after {@link MultiViewPlayer.readyState} has loaded metadata, or when the last segment is appended and there is a mismatch with the original duration.
|
|
6264
|
+
*/
|
|
6265
|
+
durationchange: DurationChangeEvent;
|
|
6266
|
+
/**
|
|
6267
|
+
* Fired when {@link MultiViewPlayer.volume} changes.
|
|
6268
|
+
*/
|
|
6269
|
+
volumechange: VolumeChangeEvent;
|
|
6270
|
+
/**
|
|
6271
|
+
* Fired when {@link MultiViewPlayer.playbackRate} changes.
|
|
6272
|
+
*/
|
|
6273
|
+
ratechange: RateChangeEvent;
|
|
6274
|
+
/**
|
|
6275
|
+
* Fired when an error occurs.
|
|
6276
|
+
*/
|
|
6277
|
+
error: ErrorEvent_2;
|
|
6278
|
+
/**
|
|
6279
|
+
* Fired when the player goes into or out of fullscreen.
|
|
6280
|
+
*/
|
|
6281
|
+
fullscreenchange: Event_2<'fullscreenchange'>;
|
|
6282
|
+
/**
|
|
6283
|
+
* Fired when a {@link View} is added.
|
|
6284
|
+
*/
|
|
6285
|
+
addview: AddViewEvent;
|
|
6286
|
+
/**
|
|
6287
|
+
* Fired when a {@link View} is removed.
|
|
6288
|
+
*/
|
|
6289
|
+
removeview: RemoveViewEvent;
|
|
6290
|
+
/**
|
|
6291
|
+
* Fired when a view's {@link View.enabled | enabled} changes.
|
|
6292
|
+
*/
|
|
6293
|
+
viewchange: ViewChangeEvent;
|
|
6294
|
+
/**
|
|
6295
|
+
* Fired when a {@link View} swapped positions in the list.
|
|
6296
|
+
*/
|
|
6297
|
+
viewpositionchange: ViewPositionChangeEvent;
|
|
6298
|
+
/**
|
|
6299
|
+
* Fired when {@link MultiViewPlayer.layout} changes.
|
|
6300
|
+
*/
|
|
6301
|
+
layoutchange: LayoutChangeEvent;
|
|
6302
|
+
}
|
|
6303
|
+
|
|
6304
|
+
/**
|
|
6305
|
+
* @public
|
|
6306
|
+
*/
|
|
6307
|
+
export declare enum MultiViewPlayerLayout {
|
|
6308
|
+
GALLERY = "gallery",
|
|
6309
|
+
OVERLAY = "overlay",
|
|
6310
|
+
SPOTLIGHT = "spotlight"
|
|
6311
|
+
}
|
|
6312
|
+
|
|
6003
6313
|
/**
|
|
6004
6314
|
* The muted autoplay policy of a player.
|
|
6005
6315
|
* <br/> - `'none'`: Disallow muted autoplay. If the player is requested to autoplay while unmuted, and the platform does not support unmuted autoplay, the player will not start playback.
|
|
@@ -7003,6 +7313,18 @@ export declare interface RemoveTrackEvent extends Event_2<'removetrack'> {
|
|
|
7003
7313
|
readonly track: Track;
|
|
7004
7314
|
}
|
|
7005
7315
|
|
|
7316
|
+
/**
|
|
7317
|
+
* Fired when a {@link View} has been removed from the {@link MultiViewPlayer}.
|
|
7318
|
+
*
|
|
7319
|
+
* @public
|
|
7320
|
+
*/
|
|
7321
|
+
export declare interface RemoveViewEvent extends Event_2<'removeview'> {
|
|
7322
|
+
/**
|
|
7323
|
+
* The view that has been removed.
|
|
7324
|
+
*/
|
|
7325
|
+
readonly view: View;
|
|
7326
|
+
}
|
|
7327
|
+
|
|
7006
7328
|
/**
|
|
7007
7329
|
* Represents a DASH representation.
|
|
7008
7330
|
*
|
|
@@ -9100,6 +9422,13 @@ export declare interface UIConfiguration {
|
|
|
9100
9422
|
* <br/> - Available since v2.90.0.
|
|
9101
9423
|
*/
|
|
9102
9424
|
fullscreenOptions?: FullscreenOptions_2;
|
|
9425
|
+
/**
|
|
9426
|
+
* Actions that define the behavior of the player
|
|
9427
|
+
*
|
|
9428
|
+
* @remarks
|
|
9429
|
+
* <br/> - Available since v4.3.0
|
|
9430
|
+
*/
|
|
9431
|
+
userActions?: UserActions;
|
|
9103
9432
|
}
|
|
9104
9433
|
|
|
9105
9434
|
/**
|
|
@@ -9394,6 +9723,19 @@ export declare interface UpNextSource {
|
|
|
9394
9723
|
duration?: string;
|
|
9395
9724
|
}
|
|
9396
9725
|
|
|
9726
|
+
/**
|
|
9727
|
+
* @public
|
|
9728
|
+
*/
|
|
9729
|
+
export declare interface UserActions {
|
|
9730
|
+
/**
|
|
9731
|
+
* Whether clicking the player element will play/pause the player.
|
|
9732
|
+
*
|
|
9733
|
+
* @defaultValue `true`
|
|
9734
|
+
* @public
|
|
9735
|
+
*/
|
|
9736
|
+
click?: boolean | ((event: any) => void);
|
|
9737
|
+
}
|
|
9738
|
+
|
|
9397
9739
|
/**
|
|
9398
9740
|
* Utils that serve common use cases. For example encoding and decoding a base64 string to Uint8Array and vice versa.
|
|
9399
9741
|
* @public
|
|
@@ -11061,6 +11403,108 @@ export declare interface VideoQuality extends Quality {
|
|
|
11061
11403
|
readonly firstFrame: number;
|
|
11062
11404
|
}
|
|
11063
11405
|
|
|
11406
|
+
/**
|
|
11407
|
+
* The View API
|
|
11408
|
+
*
|
|
11409
|
+
* @public
|
|
11410
|
+
*/
|
|
11411
|
+
export declare interface View {
|
|
11412
|
+
/**
|
|
11413
|
+
* The label with which the view was created.
|
|
11414
|
+
*/
|
|
11415
|
+
readonly label: string;
|
|
11416
|
+
/**
|
|
11417
|
+
* The position in {@link MultiViewPlayer.views}.
|
|
11418
|
+
*
|
|
11419
|
+
* @remarks
|
|
11420
|
+
* <br/> - Only the position of an enabled view can be set to zero.
|
|
11421
|
+
*/
|
|
11422
|
+
position: number;
|
|
11423
|
+
/**
|
|
11424
|
+
* Whether audio is muted.
|
|
11425
|
+
*/
|
|
11426
|
+
muted: boolean;
|
|
11427
|
+
/**
|
|
11428
|
+
* Returns if the View can be resized.
|
|
11429
|
+
*
|
|
11430
|
+
* @remarks
|
|
11431
|
+
* <br/> - Returns true if {@link MultiViewPlayer.layout} is set to {@link MultiViewPlayerLayout.OVERLAY} and the position is not equal to zero.
|
|
11432
|
+
*/
|
|
11433
|
+
readonly canResize: boolean;
|
|
11434
|
+
/**
|
|
11435
|
+
* The horizontal offset in percentage.
|
|
11436
|
+
*
|
|
11437
|
+
* @remarks
|
|
11438
|
+
* <br/> - It describes the offset of the top left corner of the view relative to the top left corner of the MultiViewPlayer.
|
|
11439
|
+
* <br/> - Cannot be set if canResize is false.
|
|
11440
|
+
*/
|
|
11441
|
+
x: number;
|
|
11442
|
+
/**
|
|
11443
|
+
* The vertical offset in percentage.
|
|
11444
|
+
*
|
|
11445
|
+
* @remarks
|
|
11446
|
+
* <br/> - It describes the offset of the top left corner of the view relative to the top left corner of the MultiViewPlayer.
|
|
11447
|
+
* <br/> - Cannot be set if canResize is false.
|
|
11448
|
+
*/
|
|
11449
|
+
y: number;
|
|
11450
|
+
/**
|
|
11451
|
+
* The percentage relative to the total width of the containing MultiViewPlayer.
|
|
11452
|
+
*
|
|
11453
|
+
* @remarks
|
|
11454
|
+
* <br/> - Cannot be set if canResize is false.
|
|
11455
|
+
*/
|
|
11456
|
+
width: number;
|
|
11457
|
+
/**
|
|
11458
|
+
* The percentage relative to the total height of the containing MultiViewPlayer.
|
|
11459
|
+
*
|
|
11460
|
+
* @remarks
|
|
11461
|
+
* <br/> - Cannot be set if canResize is false.
|
|
11462
|
+
*/
|
|
11463
|
+
height: number;
|
|
11464
|
+
/**
|
|
11465
|
+
* Whether the view is visible or not.
|
|
11466
|
+
*
|
|
11467
|
+
* @remarks
|
|
11468
|
+
* <br/> - The view at position zero is always enabled.
|
|
11469
|
+
*/
|
|
11470
|
+
enabled: boolean;
|
|
11471
|
+
/**
|
|
11472
|
+
* Destroys the associated player and removes the view from the MultiViewPlayer.
|
|
11473
|
+
*
|
|
11474
|
+
* @remarks
|
|
11475
|
+
* <br/> - The view at position zero cannot be removed.
|
|
11476
|
+
*/
|
|
11477
|
+
remove(): void;
|
|
11478
|
+
}
|
|
11479
|
+
|
|
11480
|
+
/**
|
|
11481
|
+
* Fired when a view's {@link View.enabled | enabled} changes.
|
|
11482
|
+
*
|
|
11483
|
+
* @public
|
|
11484
|
+
*/
|
|
11485
|
+
export declare interface ViewChangeEvent extends Event_2<'viewchange'> {
|
|
11486
|
+
/**
|
|
11487
|
+
* The view that has been changed.
|
|
11488
|
+
*/
|
|
11489
|
+
readonly view: View;
|
|
11490
|
+
}
|
|
11491
|
+
|
|
11492
|
+
/**
|
|
11493
|
+
* Fired when a {@link View} has swapped positions in the list.
|
|
11494
|
+
*
|
|
11495
|
+
* @public
|
|
11496
|
+
*/
|
|
11497
|
+
export declare interface ViewPositionChangeEvent extends Event_2<'viewpositionchange'> {
|
|
11498
|
+
/**
|
|
11499
|
+
* The position of the view whose position has changed.
|
|
11500
|
+
*/
|
|
11501
|
+
readonly oldPosition: number;
|
|
11502
|
+
/**
|
|
11503
|
+
* The new position of the view
|
|
11504
|
+
*/
|
|
11505
|
+
readonly newPosition: number;
|
|
11506
|
+
}
|
|
11507
|
+
|
|
11064
11508
|
/**
|
|
11065
11509
|
* Describes the configuration of the Vimond DRM integration.
|
|
11066
11510
|
*
|