@byomakase/omakase-player 1.3.0 → 1.3.1-RC1
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 +9 -4
- package/dist/omakase-player.css +1 -1
- package/dist/omakase-player.es.d.ts +1167 -134
- package/dist/omakase-player.es.js +12275 -11775
- package/dist/omakase-player.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -142,6 +142,9 @@ declare interface AlertState {
|
|
|
142
142
|
config?: AlertConfig | undefined;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
/** Union of all playback engines, discriminated by {@link PlayerPlaybackEngine.mainMediaType}. */
|
|
146
|
+
export declare type AnyPlayerPlaybackEngine = PlayerPlaybackEngineMapping[MainMediaType];
|
|
147
|
+
|
|
145
148
|
declare abstract class Audio_2 extends BaseTrack<AudioState, TrackEvent_2> {
|
|
146
149
|
protected _trackType: TrackType;
|
|
147
150
|
protected abstract _audioType: AudioType;
|
|
@@ -553,7 +556,7 @@ declare interface AudioFileMainMediaState extends MainMediaState {
|
|
|
553
556
|
declare interface AudioFilePlayerControllerConfig extends PlayerControllerConfig {
|
|
554
557
|
}
|
|
555
558
|
|
|
556
|
-
declare interface AudioFilePlayerPlaybackEngine extends PlayerPlaybackEngine {
|
|
559
|
+
declare interface AudioFilePlayerPlaybackEngine extends PlayerPlaybackEngine<MainMediaType.AUDIO_FILE> {
|
|
557
560
|
}
|
|
558
561
|
|
|
559
562
|
/**
|
|
@@ -2065,7 +2068,8 @@ export declare abstract class BasePlayerAudioTrack extends BasePlayerTrack<Audio
|
|
|
2065
2068
|
destroy(): void;
|
|
2066
2069
|
}
|
|
2067
2070
|
|
|
2068
|
-
declare abstract class BasePlayerPlaybackEngine implements PlayerPlaybackEngine {
|
|
2071
|
+
declare abstract class BasePlayerPlaybackEngine<T extends MainMediaType = MainMediaType> implements PlayerPlaybackEngine<T> {
|
|
2072
|
+
abstract readonly mainMediaType: T;
|
|
2069
2073
|
protected readonly _playerController: PlayerController;
|
|
2070
2074
|
protected constructor(playerController: PlayerController);
|
|
2071
2075
|
}
|
|
@@ -2264,6 +2268,7 @@ export declare abstract class BaseSidecarTrackController<D extends SidecarDomCon
|
|
|
2264
2268
|
export declare abstract class BaseSidecarVideoDomController implements SidecarVideoDomController {
|
|
2265
2269
|
protected readonly _hostElement: HTMLElement;
|
|
2266
2270
|
protected readonly _domVideoElement: DomVideoElement;
|
|
2271
|
+
protected _timeOffset: number;
|
|
2267
2272
|
protected constructor(config: SidecarVideoDomControllerConfig);
|
|
2268
2273
|
abstract loadSource(url: string | undefined, startTime?: number): Observable<void>;
|
|
2269
2274
|
abstract loadDuration(url: string | undefined): Observable<number>;
|
|
@@ -2274,6 +2279,8 @@ export declare abstract class BaseSidecarVideoDomController implements SidecarVi
|
|
|
2274
2279
|
protected detachVideoElementSource(): void;
|
|
2275
2280
|
get videoElement(): HTMLVideoElement;
|
|
2276
2281
|
get bufferedTimeRanges(): BufferedTimeRange[];
|
|
2282
|
+
get timeOffset(): number;
|
|
2283
|
+
get duration(): number;
|
|
2277
2284
|
get visible(): boolean;
|
|
2278
2285
|
set visible(visible: boolean);
|
|
2279
2286
|
destroy(): void;
|
|
@@ -2398,6 +2405,8 @@ export declare abstract class BaseTimelineLane<C extends TimelineLaneConfig, S e
|
|
|
2398
2405
|
protected _providedStyle?: Partial<S> | undefined;
|
|
2399
2406
|
protected _style?: S;
|
|
2400
2407
|
protected _initialStyle?: S;
|
|
2408
|
+
/** Whether minimized height and margins are written to this lane's style rule, they are reverted to {@link _initialStyle} once lane is destroyed. */
|
|
2409
|
+
protected _minimizedStyleApplied: boolean;
|
|
2401
2410
|
protected _timeline?: TimelineImpl;
|
|
2402
2411
|
protected _player?: PlayerApi;
|
|
2403
2412
|
protected _ui?: Ui;
|
|
@@ -2450,12 +2459,17 @@ export declare abstract class BaseTimelineLane<C extends TimelineLaneConfig, S e
|
|
|
2450
2459
|
addTimelineNode(config: TimelineLaneComponentConfig): TimelineNode;
|
|
2451
2460
|
isMinimized(): boolean;
|
|
2452
2461
|
/* Excluded from this release type: _minimize */
|
|
2462
|
+
protected resolveMinimizedStyle(): Partial<S>;
|
|
2463
|
+
/** Height and margins of {@link _initialStyle}, lane style before it was minimized. */
|
|
2464
|
+
protected resolveMaximizedStyle(): Partial<S>;
|
|
2453
2465
|
/* Excluded from this release type: _maximize */
|
|
2454
2466
|
minimize(args?: TimelineLaneMinimizeMaximizeArgs): void;
|
|
2455
2467
|
maximize(args?: TimelineLaneMinimizeMaximizeArgs): void;
|
|
2456
2468
|
protected checkIsPrepared(): void;
|
|
2457
2469
|
private _minimizeEased;
|
|
2458
2470
|
private _maximizeEased;
|
|
2471
|
+
/** Margin at given height, proportional to margin at full height. Full height of 0 has no margin, instead of dividing by 0. */
|
|
2472
|
+
private static scaleMargin;
|
|
2459
2473
|
toggleMinimizeMaximize(args?: TimelineLaneMinimizeMaximizeArgs): void;
|
|
2460
2474
|
get style(): S;
|
|
2461
2475
|
/**
|
|
@@ -2466,6 +2480,11 @@ export declare abstract class BaseTimelineLane<C extends TimelineLaneConfig, S e
|
|
|
2466
2480
|
protected applyStyle(style: Partial<S>): void;
|
|
2467
2481
|
setStyle(style: Partial<S>): void;
|
|
2468
2482
|
updateAttrs(attrs: TimelineLaneUpdateableAttrs): void;
|
|
2483
|
+
/**
|
|
2484
|
+
* Lane style rule outlives the lane, and lane added later with the same id would resolve minimized height as its initial height,
|
|
2485
|
+
* so it couldn't be maximized. Minimized height and margins are reverted to initial ones.
|
|
2486
|
+
*/
|
|
2487
|
+
protected revertMinimizedStyle(): void;
|
|
2469
2488
|
protected updateDescriptionTextLabel(description: string | undefined): void;
|
|
2470
2489
|
destroy(): void;
|
|
2471
2490
|
}
|
|
@@ -3738,6 +3757,13 @@ export declare class ControlBar implements ControlBarApi, Destroyable {
|
|
|
3738
3757
|
private wirePreviewThumbnails;
|
|
3739
3758
|
get markerBar(): ControlBarMarkerBarApi;
|
|
3740
3759
|
getControlBarElement<T>(querySelector: string): T;
|
|
3760
|
+
setVisible(componentId: string, visible: boolean): void;
|
|
3761
|
+
setEnabled(componentId: string, enabled: boolean): void;
|
|
3762
|
+
setShortcut(componentId: string, shortcut: string | undefined): void;
|
|
3763
|
+
setShortcutEnabled(componentId: string, enabled: boolean): void;
|
|
3764
|
+
setAttribute(componentId: string, attribute: string, value: string | undefined): void;
|
|
3765
|
+
private getComponentOrFail;
|
|
3766
|
+
private getControlBarComponentOrFail;
|
|
3741
3767
|
destroy(): void;
|
|
3742
3768
|
}
|
|
3743
3769
|
|
|
@@ -3751,6 +3777,37 @@ export declare interface ControlBarApi {
|
|
|
3751
3777
|
* @param querySelector HTML query selector
|
|
3752
3778
|
*/
|
|
3753
3779
|
getControlBarElement<T>(querySelector: string): T;
|
|
3780
|
+
/**
|
|
3781
|
+
* Shows or hides a component of the control bar
|
|
3782
|
+
* @param componentId `id` attribute of the component
|
|
3783
|
+
* @param visible
|
|
3784
|
+
*/
|
|
3785
|
+
setVisible(componentId: string, visible: boolean): void;
|
|
3786
|
+
/**
|
|
3787
|
+
* Enables or disables a component of the control bar
|
|
3788
|
+
* @param componentId `id` attribute of the component
|
|
3789
|
+
* @param enabled
|
|
3790
|
+
*/
|
|
3791
|
+
setEnabled(componentId: string, enabled: boolean): void;
|
|
3792
|
+
/**
|
|
3793
|
+
* Sets the key of a component's keyboard shortcut, overriding the key of its action, or restores the action's key when `undefined`
|
|
3794
|
+
* @param componentId `id` attribute of the component
|
|
3795
|
+
* @param shortcut Key string, e.g. `Shift+J`
|
|
3796
|
+
*/
|
|
3797
|
+
setShortcut(componentId: string, shortcut: string | undefined): void;
|
|
3798
|
+
/**
|
|
3799
|
+
* Enables or disables a component's keyboard shortcut
|
|
3800
|
+
* @param componentId `id` attribute of the component
|
|
3801
|
+
* @param enabled
|
|
3802
|
+
*/
|
|
3803
|
+
setShortcutEnabled(componentId: string, enabled: boolean): void;
|
|
3804
|
+
/**
|
|
3805
|
+
* Sets an attribute of a component of the control bar, or removes it when `value` is `undefined`
|
|
3806
|
+
* @param componentId `id` attribute of the component
|
|
3807
|
+
* @param attribute Attribute name
|
|
3808
|
+
* @param value Attribute value
|
|
3809
|
+
*/
|
|
3810
|
+
setAttribute(componentId: string, attribute: string, value: string | undefined): void;
|
|
3754
3811
|
/**
|
|
3755
3812
|
* Marker bars API
|
|
3756
3813
|
*/
|
|
@@ -4184,12 +4241,19 @@ export declare class ControlBarMarkerBar implements ControlBarMarkerBarApi, Dest
|
|
|
4184
4241
|
private readonly _controlBarElement;
|
|
4185
4242
|
private readonly _track;
|
|
4186
4243
|
private _markerBars;
|
|
4244
|
+
private _destroyBreaker;
|
|
4187
4245
|
/**
|
|
4188
4246
|
* @param _controlBarElement The control bar element, holding the `<omakase-marker-bars>` elements
|
|
4189
4247
|
* @param _track Track API of the player the control bar is created for
|
|
4190
4248
|
*/
|
|
4191
4249
|
constructor(_controlBarElement: HTMLElement, _track: OmakaseTrackApi);
|
|
4192
4250
|
addMarkerBar(markerBars: string | HTMLElement, tracks?: MarkerTrack | MarkerTrack['id'] | (MarkerTrack | MarkerTrack['id'])[], config?: Partial<ControlBarMarkerBarConfig>): ControlBarMarkerBarHandlerApi;
|
|
4251
|
+
/**
|
|
4252
|
+
* Adds the marker bars declared in the control bar template, as `<omakase-marker-bar>` children of `<omakase-marker-bars>`.
|
|
4253
|
+
* Each one shows the marker track given by its `marker-track-id` attribute, while that track is added to the player
|
|
4254
|
+
*/
|
|
4255
|
+
_addDeclaredMarkerBars(): void;
|
|
4256
|
+
private createHandler;
|
|
4193
4257
|
getMarkerBars(): ControlBarMarkerBarHandlerApi[];
|
|
4194
4258
|
getMarkerBar(id: string): ControlBarMarkerBarHandlerApi | undefined;
|
|
4195
4259
|
deleteMarkerBar(id: string): void;
|
|
@@ -4565,6 +4629,8 @@ export declare const DEFAULT_CHROMING_VU_METER_CONFIG: ChromingVuMeterConfig;
|
|
|
4565
4629
|
|
|
4566
4630
|
export declare const DEFAULT_CHROMING_VU_METER_STYLE: Omit<ChromingVuMeterStyle, 'levelColors'>;
|
|
4567
4631
|
|
|
4632
|
+
export declare const DEFAULT_COLOR_PALETTE: Color[];
|
|
4633
|
+
|
|
4568
4634
|
export declare const DEFAULT_DOWNSAMPLE_OPTIONS: Required<DownsampleOptions>;
|
|
4569
4635
|
|
|
4570
4636
|
export declare const DEFAULT_ELEMENT_STYLES: {
|
|
@@ -5224,7 +5290,7 @@ declare interface FrameImagePlayerControllerConfig extends VirtualPlayerControll
|
|
|
5224
5290
|
frameImageConfig: Partial<FrameImageConfig>;
|
|
5225
5291
|
}
|
|
5226
5292
|
|
|
5227
|
-
declare interface FrameImagePlayerPlaybackEngine extends PlayerPlaybackEngine {
|
|
5293
|
+
declare interface FrameImagePlayerPlaybackEngine extends PlayerPlaybackEngine<MainMediaType.FRAME_IMAGE> {
|
|
5228
5294
|
}
|
|
5229
5295
|
|
|
5230
5296
|
declare interface FrameRateModel extends Serializable {
|
|
@@ -5407,7 +5473,7 @@ declare interface HlsPlayerControllerConfig extends PlayerControllerConfig {
|
|
|
5407
5473
|
loadVideoLicenseXhrSetup?: (sourceUrl: string, loadOptions?: MainMediaLoadOptions | undefined) => HlsLicenseXhrSetupFn;
|
|
5408
5474
|
}
|
|
5409
5475
|
|
|
5410
|
-
declare interface HlsPlayerPlaybackEngine extends PlayerPlaybackEngine {
|
|
5476
|
+
declare interface HlsPlayerPlaybackEngine extends PlayerPlaybackEngine<MainMediaType.HLS | MainMediaType.TAMS> {
|
|
5411
5477
|
get hls(): default_2 | undefined;
|
|
5412
5478
|
}
|
|
5413
5479
|
|
|
@@ -5416,10 +5482,28 @@ declare interface HlsPlayerPlaybackEngine extends PlayerPlaybackEngine {
|
|
|
5416
5482
|
*/
|
|
5417
5483
|
export declare class HlsSidecarVideoDomController extends BaseSidecarVideoDomController {
|
|
5418
5484
|
protected _hls: default_2 | undefined;
|
|
5485
|
+
/** fMP4 first video frame time is read from playlist's first fragment once, and reused when source is attached again. */
|
|
5486
|
+
protected _resolvedFirstVideoFrameTime: {
|
|
5487
|
+
url: string;
|
|
5488
|
+
time: number;
|
|
5489
|
+
} | undefined;
|
|
5419
5490
|
protected _loadBreaker: ObserverBreaker;
|
|
5420
5491
|
protected _destroyBreaker: ObserverBreaker;
|
|
5421
5492
|
constructor(config: SidecarVideoDomControllerConfig);
|
|
5422
5493
|
loadSource(url: string | undefined, startTime?: number): Observable<void>;
|
|
5494
|
+
/**
|
|
5495
|
+
* Resolves where the first video frame lands on video element timeline, the same way as for main media HLS:
|
|
5496
|
+
* - fMP4 - first fragment's lowest video presentation time without edit lists, see {@link MediaMetadataResolver.getHlsFmp4MseFirstVideoFrameTime}, shifted the same way hls.js
|
|
5497
|
+
* shifts fMP4 timeline: hls.js sets SourceBuffer timestampOffset to -initPTS, where initPTS is decode time of the first fragment it parses
|
|
5498
|
+
* minus that fragment's playlist time. First video frame time is read once and reused when source is attached again, initPTS is taken on every load
|
|
5499
|
+
* - MPEG-TS - hls.js rewrites timestamps relative to first fragment it parses, so it is measured on every load, from the position
|
|
5500
|
+
* hls.js reports for that fragment. Falls back to 0 if media loaded without it
|
|
5501
|
+
*
|
|
5502
|
+
* Start position given to hls.js stays in sidecar time, fragments are looked up on playlist timeline, which starts at 0.
|
|
5503
|
+
*/
|
|
5504
|
+
protected resolveTimeOffset(hls: default_2, url: string): Observable<number>;
|
|
5505
|
+
/** HLS duration is resolved from playlist, video element duration depends on how hls.js aligned it. */
|
|
5506
|
+
get duration(): number;
|
|
5423
5507
|
loadDuration(url: string | undefined): Observable<number>;
|
|
5424
5508
|
release(): void;
|
|
5425
5509
|
protected tryRecover(data: ErrorData): void;
|
|
@@ -6554,6 +6638,8 @@ export declare class MarkerList implements Destroyable, MarkerListApi {
|
|
|
6554
6638
|
protected removeMarkerFromDom(markerId: string): void;
|
|
6555
6639
|
private resolveTrackSource;
|
|
6556
6640
|
private wireMarkerTrack;
|
|
6641
|
+
private isInMainMediaRange;
|
|
6642
|
+
private syncMarkersInMainMediaRange;
|
|
6557
6643
|
private addMarkerToComponent;
|
|
6558
6644
|
private resolveThumbnail;
|
|
6559
6645
|
private resolveThumbnails;
|
|
@@ -6566,6 +6652,18 @@ export declare interface MarkerListActionEventData extends Serializable {
|
|
|
6566
6652
|
|
|
6567
6653
|
export declare interface MarkerListApi extends Destroyable {
|
|
6568
6654
|
onEvent$: Observable<MarkerListEvent>;
|
|
6655
|
+
/**
|
|
6656
|
+
* Markers currently displayed in the Marker List, in display order
|
|
6657
|
+
*/
|
|
6658
|
+
readonly markers: MarkerState[];
|
|
6659
|
+
/**
|
|
6660
|
+
* Marker List configuration
|
|
6661
|
+
*/
|
|
6662
|
+
readonly config: MarkerListConfig;
|
|
6663
|
+
/**
|
|
6664
|
+
* Thumbnail Track used to resolve marker thumbnails.
|
|
6665
|
+
*/
|
|
6666
|
+
thumbnailTrack: ThumbnailTrack | undefined;
|
|
6569
6667
|
/**
|
|
6570
6668
|
* Links another Marker Track to the Marker List
|
|
6571
6669
|
* @param track Marker Track or Marker Track id
|
|
@@ -6580,6 +6678,12 @@ export declare interface MarkerListApi extends Destroyable {
|
|
|
6580
6678
|
* @returns all linked Marker Tracks
|
|
6581
6679
|
*/
|
|
6582
6680
|
getTracks(): MarkerTrack[];
|
|
6681
|
+
/**
|
|
6682
|
+
* Moves a marker to a new position in the Marker List
|
|
6683
|
+
* @param id Marker id
|
|
6684
|
+
* @param index Target index
|
|
6685
|
+
*/
|
|
6686
|
+
reorderMarker(id: string, index: number): void;
|
|
6583
6687
|
}
|
|
6584
6688
|
|
|
6585
6689
|
export declare interface MarkerListConfig {
|
|
@@ -6596,6 +6700,7 @@ export declare interface MarkerListConfig {
|
|
|
6596
6700
|
markerTrack?: MarkerListSource | MarkerListSource[] | undefined;
|
|
6597
6701
|
thumbnailTrack?: MarkerListSource | undefined;
|
|
6598
6702
|
mode?: MarkerListMode;
|
|
6703
|
+
clipToMainMedia?: boolean;
|
|
6599
6704
|
}
|
|
6600
6705
|
|
|
6601
6706
|
export declare interface MarkerListDeleteEventData extends Serializable {
|
|
@@ -6661,7 +6766,7 @@ export declare class MarkerListItem {
|
|
|
6661
6766
|
get state(): MarkerState;
|
|
6662
6767
|
}
|
|
6663
6768
|
|
|
6664
|
-
declare enum MarkerListMode {
|
|
6769
|
+
export declare enum MarkerListMode {
|
|
6665
6770
|
TIMELINE = "TIMELINE",
|
|
6666
6771
|
CUTLIST = "CUTLIST"
|
|
6667
6772
|
}
|
|
@@ -7206,6 +7311,40 @@ declare interface MediaMetadata_2 {
|
|
|
7206
7311
|
|
|
7207
7312
|
export declare class MediaMetadataResolver {
|
|
7208
7313
|
static getMediaMetadata<K extends keyof MediaMetadata_2>(src: string, keys: K[]): Observable<Pick<MediaMetadata_2, K>>;
|
|
7314
|
+
/**
|
|
7315
|
+
* Presentation time of the first video frame of a fMP4 media segment, read together with its init segment (a bare media
|
|
7316
|
+
* segment is not parsable on its own). Lowest video packet timestamp of the segment, in seconds.
|
|
7317
|
+
*
|
|
7318
|
+
* @returns first video frame time, undefined if there is no video track or packets
|
|
7319
|
+
*/
|
|
7320
|
+
static getFmp4FirstVideoFrameTime(initSegment: SegmentLocation, segment: SegmentLocation): Observable<number | undefined>;
|
|
7321
|
+
/**
|
|
7322
|
+
* Resolves where the first video frame of fMP4 HLS stream lands on media element timeline. hls.js passes fMP4 through without
|
|
7323
|
+
* rewriting timestamps (in every version), so it is the first fragment's lowest video presentation time, read from the init segment
|
|
7324
|
+
* and first fragment together.
|
|
7325
|
+
*
|
|
7326
|
+
* Falls back to probing the fragment alone, which only works for self-contained fragments, and to 0 if that fails too.
|
|
7327
|
+
*
|
|
7328
|
+
* @param firstFragment First fragment of media playlist, with its init segment
|
|
7329
|
+
*/
|
|
7330
|
+
static getHlsFmp4FirstVideoFrameTime(firstFragment: SegmentLocation & {
|
|
7331
|
+
initSegment?: SegmentLocation | null | undefined;
|
|
7332
|
+
}): Observable<number | undefined>;
|
|
7333
|
+
/**
|
|
7334
|
+
* First video frame time of fMP4 HLS stream as appended to MSE SourceBuffer - first fragment's lowest video presentation time from its
|
|
7335
|
+
* decode time and composition offsets, without edit lists, which browsers ignore for fragmented MP4 in MSE, see {@link Fmp4SampleTimes}.
|
|
7336
|
+
* hls.js further shifts it by initPTS. Falls back to {@link getHlsFmp4FirstVideoFrameTime} if it can't be read.
|
|
7337
|
+
*
|
|
7338
|
+
* @param firstFragment First fragment of media playlist, with its init segment
|
|
7339
|
+
*/
|
|
7340
|
+
static getHlsFmp4MseFirstVideoFrameTime(firstFragment: SegmentLocation & {
|
|
7341
|
+
initSegment?: SegmentLocation | null | undefined;
|
|
7342
|
+
}): Observable<number | undefined>;
|
|
7343
|
+
/**
|
|
7344
|
+
* Lowest video packet timestamp of given media bytes, in seconds. Packets are scanned (metadata only) because first packet in
|
|
7345
|
+
* decode order is not necessarily the first presented one.
|
|
7346
|
+
*/
|
|
7347
|
+
static getFirstVideoFrameTime(bytes: Uint8Array): Promise<number | undefined>;
|
|
7209
7348
|
private static getMediaMetadataWithMediabunny;
|
|
7210
7349
|
}
|
|
7211
7350
|
|
|
@@ -7466,16 +7605,28 @@ declare interface Mp4MainMediaState extends MainMediaState {
|
|
|
7466
7605
|
declare interface Mp4PlayerControllerConfig extends PlayerControllerConfig {
|
|
7467
7606
|
}
|
|
7468
7607
|
|
|
7469
|
-
declare interface Mp4PlayerPlaybackEngine extends PlayerPlaybackEngine {
|
|
7608
|
+
declare interface Mp4PlayerPlaybackEngine extends PlayerPlaybackEngine<MainMediaType.MP4> {
|
|
7470
7609
|
}
|
|
7471
7610
|
|
|
7472
7611
|
/**
|
|
7473
7612
|
* Sidecar video DOM controller for MP4 files, source is set directly on video element.
|
|
7474
7613
|
*/
|
|
7475
7614
|
export declare class Mp4SidecarVideoDomController extends BaseSidecarVideoDomController {
|
|
7615
|
+
/** Time offset is read from file once, and reused when source is attached again. */
|
|
7616
|
+
protected _resolvedTimeOffset: {
|
|
7617
|
+
url: string;
|
|
7618
|
+
timeOffset: number;
|
|
7619
|
+
} | undefined;
|
|
7476
7620
|
constructor(config: SidecarVideoDomControllerConfig);
|
|
7477
7621
|
loadSource(url: string | undefined, startTime?: number): Observable<void>;
|
|
7622
|
+
/**
|
|
7623
|
+
* First video frame time, same as for main media MP4, see {@link MediaMetadataResolver.getMediaMetadata}. Only moov box and first samples are fetched.
|
|
7624
|
+
* Falls back to 0 if it can't be read.
|
|
7625
|
+
*/
|
|
7626
|
+
protected resolveTimeOffset(url: string): Observable<number>;
|
|
7478
7627
|
loadDuration(url: string | undefined): Observable<number>;
|
|
7628
|
+
/** Video element duration, in video element time. */
|
|
7629
|
+
protected loadElementDuration(url: string): Observable<number>;
|
|
7479
7630
|
release(): void;
|
|
7480
7631
|
protected static resolveFragmentUrl(url: string, startTime: number | undefined): string;
|
|
7481
7632
|
}
|
|
@@ -7679,7 +7830,10 @@ export declare class ObservationTrackAudioLevelSource extends AudioLevelSource {
|
|
|
7679
7830
|
private _channelNearObservations;
|
|
7680
7831
|
private _sampleTime;
|
|
7681
7832
|
private _eventEmitterTreshold;
|
|
7682
|
-
|
|
7833
|
+
private readonly _observationType;
|
|
7834
|
+
private _levelsChannelCount;
|
|
7835
|
+
constructor(player: OmakasePlayerApi, track: ObservationTrack | ObservationTrack[], options?: ObservationTrackAudioLevelSourceOptions);
|
|
7836
|
+
get observationType(): AudioObservationType;
|
|
7683
7837
|
get channelCount(): number;
|
|
7684
7838
|
wirePlayer(player: OmakasePlayerApi): void;
|
|
7685
7839
|
setTrack(track: ObservationTrack | ObservationTrack[]): void;
|
|
@@ -7688,9 +7842,22 @@ export declare class ObservationTrackAudioLevelSource extends AudioLevelSource {
|
|
|
7688
7842
|
private getDbValuesAtTime;
|
|
7689
7843
|
private getChannelMaxValueAtTime;
|
|
7690
7844
|
private extractDbValues;
|
|
7845
|
+
private resolveLevelsChannelCount;
|
|
7846
|
+
private updateLevelsChannelCount;
|
|
7691
7847
|
private isObservationValid;
|
|
7692
7848
|
}
|
|
7693
7849
|
|
|
7850
|
+
export declare interface ObservationTrackAudioLevelSourceOptions {
|
|
7851
|
+
/**
|
|
7852
|
+
* Type of the values held by the observation track(s), see {@link AudioObservationType}:
|
|
7853
|
+
* - `WAVEFORM` - linear sample values in the -1 to 1 range, converted to dBFS
|
|
7854
|
+
* - `LEVELS` - values already in dBFS (e.g. tracks generated with `observationType: AudioObservationType.LEVELS`), used as they are
|
|
7855
|
+
*
|
|
7856
|
+
* Defaults to `WAVEFORM`.
|
|
7857
|
+
*/
|
|
7858
|
+
observationType?: AudioObservationType | undefined;
|
|
7859
|
+
}
|
|
7860
|
+
|
|
7694
7861
|
export declare class ObservationTrackDownsampler extends TimedItemsTrackDownsampler<ObservationTrack<ObservationTrackState, ObservationTrackEvent>> {
|
|
7695
7862
|
constructor(sourceTrack: ObservationTrack, options: DownsampleOptions);
|
|
7696
7863
|
protected createDownsampledTrack(): ObservationTrack<ObservationTrackState, ObservationTrackEvent>;
|
|
@@ -7861,6 +8028,11 @@ export declare class OmakaseAudioVisualization extends HTMLElement {
|
|
|
7861
8028
|
private getScaledValue;
|
|
7862
8029
|
}
|
|
7863
8030
|
|
|
8031
|
+
export declare const OmakaseAudioVisualizationAttributes: {
|
|
8032
|
+
FILL: string;
|
|
8033
|
+
STROKE: string;
|
|
8034
|
+
};
|
|
8035
|
+
|
|
7864
8036
|
declare type OmakaseCaptionsState = 'on' | 'off' | 'disabled';
|
|
7865
8037
|
|
|
7866
8038
|
export declare class OmakaseCaptionsToggle extends OmakaseCaptionsToggle_base {
|
|
@@ -8253,6 +8425,61 @@ declare const OmakaseCaptionsToggle_base: {
|
|
|
8253
8425
|
get observedAttributes(): string[];
|
|
8254
8426
|
} & typeof MediaChromeButton;
|
|
8255
8427
|
|
|
8428
|
+
export declare class OmakaseColorSelectorButton extends OmakaseSegmentationButton {
|
|
8429
|
+
static get observedAttributes(): string[];
|
|
8430
|
+
private _flyout;
|
|
8431
|
+
private _grid;
|
|
8432
|
+
private _isOpen;
|
|
8433
|
+
private _documentClickListener;
|
|
8434
|
+
protected _uiEventBreaker: ObserverBreaker;
|
|
8435
|
+
protected _trackEventBreaker: ObserverBreaker;
|
|
8436
|
+
private _newMarkerColor;
|
|
8437
|
+
protected get iconClass(): string;
|
|
8438
|
+
protected get tooltipText(): string;
|
|
8439
|
+
get scope(): OmakaseColorSelectorScope;
|
|
8440
|
+
set scope(value: OmakaseColorSelectorScope);
|
|
8441
|
+
get initialColor(): Color;
|
|
8442
|
+
set initialColor(value: Color | undefined);
|
|
8443
|
+
get palette(): Color[];
|
|
8444
|
+
set palette(value: Color[] | undefined);
|
|
8445
|
+
get flyoutDirection(): OmakaseColorSelectorFlyoutDirection;
|
|
8446
|
+
set flyoutDirection(direction: OmakaseColorSelectorFlyoutDirection | undefined);
|
|
8447
|
+
get selectedColor(): Color;
|
|
8448
|
+
set selectedColor(color: Color);
|
|
8449
|
+
get newMarkerColor(): Color | undefined;
|
|
8450
|
+
set newMarkerColor(color: Color | undefined);
|
|
8451
|
+
get track(): OmakaseTrackApi | undefined;
|
|
8452
|
+
set track(track: OmakaseTrackApi | undefined);
|
|
8453
|
+
get ui(): UiApi | undefined;
|
|
8454
|
+
set ui(ui: UiApi | undefined);
|
|
8455
|
+
connectedCallback(): void;
|
|
8456
|
+
disconnectedCallback(): void;
|
|
8457
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
8458
|
+
handleClick(event?: Event): void;
|
|
8459
|
+
protected buildContent(): void;
|
|
8460
|
+
protected activate(track: MarkerTrack): void;
|
|
8461
|
+
protected updateActiveState(): void;
|
|
8462
|
+
private setOpen;
|
|
8463
|
+
private renderGrid;
|
|
8464
|
+
private resolveColumns;
|
|
8465
|
+
private resolveSelectedColor;
|
|
8466
|
+
private resolveEffectiveColor;
|
|
8467
|
+
private applyColor;
|
|
8468
|
+
private applyNewMarkerColor;
|
|
8469
|
+
private refreshSelectedColor;
|
|
8470
|
+
}
|
|
8471
|
+
|
|
8472
|
+
export declare const OmakaseColorSelectorButtonAttributes: {
|
|
8473
|
+
SCOPE: string;
|
|
8474
|
+
INITIAL_COLOR: string;
|
|
8475
|
+
PALETTE: string;
|
|
8476
|
+
FLYOUT: string;
|
|
8477
|
+
};
|
|
8478
|
+
|
|
8479
|
+
export declare type OmakaseColorSelectorFlyoutDirection = 'left' | 'right' | 'up' | 'down';
|
|
8480
|
+
|
|
8481
|
+
export declare type OmakaseColorSelectorScope = 'track' | 'marker';
|
|
8482
|
+
|
|
8256
8483
|
export declare class OmakaseControlBarGroup extends HTMLElement {
|
|
8257
8484
|
}
|
|
8258
8485
|
|
|
@@ -8275,6 +8502,30 @@ export declare enum OmakaseControlBarVisibility {
|
|
|
8275
8502
|
ALWAYS_ON = "ALWAYS_ON"
|
|
8276
8503
|
}
|
|
8277
8504
|
|
|
8505
|
+
export declare class OmakaseCreateMarkerButton extends OmakaseSegmentationButton {
|
|
8506
|
+
private _onCreateMarker;
|
|
8507
|
+
protected get iconClass(): string;
|
|
8508
|
+
protected get tooltipText(): string;
|
|
8509
|
+
get onCreateMarker(): OmakaseCreateMarkerFn | undefined;
|
|
8510
|
+
set onCreateMarker(fn: OmakaseCreateMarkerFn | undefined);
|
|
8511
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
8512
|
+
protected activate(track: MarkerTrack): void;
|
|
8513
|
+
}
|
|
8514
|
+
|
|
8515
|
+
export declare type OmakaseCreateMarkerFn = (track: MarkerTrack, currentTime: number) => void;
|
|
8516
|
+
|
|
8517
|
+
export declare class OmakaseDeleteMarkerButton extends OmakaseSegmentationButton {
|
|
8518
|
+
private _onDeleteMarker;
|
|
8519
|
+
protected get iconClass(): string;
|
|
8520
|
+
protected get tooltipText(): string;
|
|
8521
|
+
get onDeleteMarker(): OmakaseDeleteMarkerFn | undefined;
|
|
8522
|
+
set onDeleteMarker(fn: OmakaseDeleteMarkerFn | undefined);
|
|
8523
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
8524
|
+
protected activate(track: MarkerTrack): void;
|
|
8525
|
+
}
|
|
8526
|
+
|
|
8527
|
+
export declare type OmakaseDeleteMarkerFn = (track: MarkerTrack, markers: Marker[]) => void;
|
|
8528
|
+
|
|
8278
8529
|
export declare class OmakaseDetachToggle extends OmakaseDetachToggle_base {
|
|
8279
8530
|
static get observedAttributes(): string[];
|
|
8280
8531
|
private _omakasePlayer;
|
|
@@ -8705,6 +8956,12 @@ export declare class OmakaseDropdown extends HTMLElement {
|
|
|
8705
8956
|
|
|
8706
8957
|
declare type OmakaseDropdownAlignment = 'left' | 'center' | 'right';
|
|
8707
8958
|
|
|
8959
|
+
export declare const OmakaseDropdownAttributes: {
|
|
8960
|
+
POSITION: string;
|
|
8961
|
+
ALIGNMENT: string;
|
|
8962
|
+
FLOATING: string;
|
|
8963
|
+
};
|
|
8964
|
+
|
|
8708
8965
|
export declare class OmakaseDropdownList extends HTMLElement implements OmakaseDropdownListApi {
|
|
8709
8966
|
private _title?;
|
|
8710
8967
|
private _list?;
|
|
@@ -8764,6 +9021,15 @@ export declare interface OmakaseDropdownListApi {
|
|
|
8764
9021
|
setOptions(options: OmakaseDropdownListItem[]): void;
|
|
8765
9022
|
}
|
|
8766
9023
|
|
|
9024
|
+
export declare const OmakaseDropdownListAttributes: {
|
|
9025
|
+
WIDTH: string;
|
|
9026
|
+
MAX_WIDTH: string;
|
|
9027
|
+
TYPE: string;
|
|
9028
|
+
MULTISELECT: string;
|
|
9029
|
+
TITLE: string;
|
|
9030
|
+
DROPDOWN: string;
|
|
9031
|
+
};
|
|
9032
|
+
|
|
8767
9033
|
/**
|
|
8768
9034
|
* Single item in the dropdown list.
|
|
8769
9035
|
*/
|
|
@@ -8807,6 +9073,13 @@ export declare class OmakaseDropdownOption extends HTMLElement {
|
|
|
8807
9073
|
connectedCallback(): void;
|
|
8808
9074
|
}
|
|
8809
9075
|
|
|
9076
|
+
export declare const OmakaseDropdownOptionAttributes: {
|
|
9077
|
+
VALUE: string;
|
|
9078
|
+
TITLE: string;
|
|
9079
|
+
SELECTED: string;
|
|
9080
|
+
DISABLED: string;
|
|
9081
|
+
};
|
|
9082
|
+
|
|
8810
9083
|
declare type OmakaseDropdownPosition = 'above' | 'below';
|
|
8811
9084
|
|
|
8812
9085
|
declare abstract class OmakaseDropdownSelector extends OmakaseDropdownSelector_base {
|
|
@@ -9247,7 +9520,20 @@ declare const OmakaseDropdownSelector_base: {
|
|
|
9247
9520
|
prototype: HTMLElement;
|
|
9248
9521
|
};
|
|
9249
9522
|
|
|
9250
|
-
declare
|
|
9523
|
+
export declare const OmakaseDropdownSelectorAttributes: {
|
|
9524
|
+
DROPDOWN: string;
|
|
9525
|
+
ALIGNMENT: string;
|
|
9526
|
+
POSITION: string;
|
|
9527
|
+
CONTAINER_RIGHT: string;
|
|
9528
|
+
DROPDOWN_CLASS: string;
|
|
9529
|
+
TOGGLE_CLASS: string;
|
|
9530
|
+
FLOATING: string;
|
|
9531
|
+
CARET: string;
|
|
9532
|
+
TOGGLE_BACKGROUND: string;
|
|
9533
|
+
EXPAND_DIRECTION: string;
|
|
9534
|
+
};
|
|
9535
|
+
|
|
9536
|
+
export declare type OmakaseDropdownSelectorExpandDirection = 'left' | 'right';
|
|
9251
9537
|
|
|
9252
9538
|
export declare class OmakaseDropdownToggle extends HTMLElement {
|
|
9253
9539
|
static get observedAttributes(): string[];
|
|
@@ -9263,6 +9549,11 @@ export declare class OmakaseDropdownToggle extends HTMLElement {
|
|
|
9263
9549
|
private _bindDropdown;
|
|
9264
9550
|
}
|
|
9265
9551
|
|
|
9552
|
+
export declare const OmakaseDropdownToggleAttributes: {
|
|
9553
|
+
DROPDOWN: string;
|
|
9554
|
+
DISABLED: string;
|
|
9555
|
+
};
|
|
9556
|
+
|
|
9266
9557
|
export declare class OmakaseEndButton extends OmakaseEndButton_base {
|
|
9267
9558
|
private _player;
|
|
9268
9559
|
private _iconSpan;
|
|
@@ -10424,6 +10715,11 @@ export declare class OmakaseKeyframeButton extends OmakaseKeyframeButton_base {
|
|
|
10424
10715
|
handleClick(): void;
|
|
10425
10716
|
disconnectedCallback(): void;
|
|
10426
10717
|
private extractKeyframe;
|
|
10718
|
+
/**
|
|
10719
|
+
* Compiles the callback attribute value the same way the browser compiles inline event handlers such as `onclick`:
|
|
10720
|
+
* the value is the body of a function that receives `keyframe` and is invoked with the button as `this`
|
|
10721
|
+
*/
|
|
10722
|
+
private compileCallbackAttribute;
|
|
10427
10723
|
private playAudio;
|
|
10428
10724
|
private releaseAudio;
|
|
10429
10725
|
private updateActiveState;
|
|
@@ -10801,6 +11097,7 @@ declare const OmakaseKeyframeButton_base: {
|
|
|
10801
11097
|
|
|
10802
11098
|
export declare const OmakaseKeyframeButtonAttributes: {
|
|
10803
11099
|
AUDIO_SRC: string;
|
|
11100
|
+
CALLBACK: string;
|
|
10804
11101
|
INACTIVE: string;
|
|
10805
11102
|
};
|
|
10806
11103
|
|
|
@@ -11223,6 +11520,74 @@ export declare const OmakaseLiveButtonAttributes: {
|
|
|
11223
11520
|
DVR: string;
|
|
11224
11521
|
};
|
|
11225
11522
|
|
|
11523
|
+
export declare class OmakaseLoopOnMarkerButton extends OmakaseSegmentationButton {
|
|
11524
|
+
static get observedAttributes(): string[];
|
|
11525
|
+
protected _watchBreaker: ObserverBreaker;
|
|
11526
|
+
protected get iconClass(): string;
|
|
11527
|
+
protected get tooltipText(): string;
|
|
11528
|
+
/**
|
|
11529
|
+
* Maximum distance, in seconds, played on either side of an active Moment Marker. Defaults to 5
|
|
11530
|
+
* when unset.
|
|
11531
|
+
*/
|
|
11532
|
+
get displacement(): number;
|
|
11533
|
+
set displacement(value: number);
|
|
11534
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
11535
|
+
protected activate(track: MarkerTrack): void;
|
|
11536
|
+
disconnectedCallback(): void;
|
|
11537
|
+
}
|
|
11538
|
+
|
|
11539
|
+
export declare const OmakaseLoopOnMarkerButtonAttributes: {
|
|
11540
|
+
DISPLACEMENT: string;
|
|
11541
|
+
};
|
|
11542
|
+
|
|
11543
|
+
/**
|
|
11544
|
+
* Shared rendering for the Mark-In/Mark-Out capabilities' three representations.
|
|
11545
|
+
*/
|
|
11546
|
+
export declare abstract class OmakaseMarkButton extends OmakaseSegmentationButton {
|
|
11547
|
+
static get observedAttributes(): string[];
|
|
11548
|
+
private _labelSpan;
|
|
11549
|
+
private _displaySpan;
|
|
11550
|
+
private _displaySizerSpan;
|
|
11551
|
+
private _displayValueSpan;
|
|
11552
|
+
private _localization;
|
|
11553
|
+
protected _playerBreaker: ObserverBreaker;
|
|
11554
|
+
/**
|
|
11555
|
+
* Default for {@link label} when the `label` attribute/property isn't set - the localized
|
|
11556
|
+
* string from {@link localization}, if wired, otherwise a hardcoded English fallback.
|
|
11557
|
+
*/
|
|
11558
|
+
protected abstract get defaultLabel(): string;
|
|
11559
|
+
/**
|
|
11560
|
+
* Resolves the time to display (in seconds) for the given, currently-active marker, or
|
|
11561
|
+
* `undefined` to show the empty placeholder.
|
|
11562
|
+
*/
|
|
11563
|
+
protected abstract resolveDisplayTime(marker: Marker): number | undefined;
|
|
11564
|
+
get representation(): OmakaseMarkButtonRepresentation;
|
|
11565
|
+
set representation(value: OmakaseMarkButtonRepresentation);
|
|
11566
|
+
/**
|
|
11567
|
+
* Localizable label shown in the `label-time` representation. Defaults to {@link defaultLabel}.
|
|
11568
|
+
*/
|
|
11569
|
+
get label(): string;
|
|
11570
|
+
set label(value: string | undefined);
|
|
11571
|
+
get localization(): LocalizationApi | undefined;
|
|
11572
|
+
set localization(localization: LocalizationApi | undefined);
|
|
11573
|
+
get player(): PlayerApi | PlayerDetachedApi | undefined;
|
|
11574
|
+
set player(player: PlayerApi | PlayerDetachedApi | undefined);
|
|
11575
|
+
disconnectedCallback(): void;
|
|
11576
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
11577
|
+
protected buildContent(): void;
|
|
11578
|
+
protected get disabledStateElement(): HTMLElement | undefined;
|
|
11579
|
+
protected updateActiveState(): void;
|
|
11580
|
+
private appendDisplay;
|
|
11581
|
+
private updateDisplay;
|
|
11582
|
+
}
|
|
11583
|
+
|
|
11584
|
+
export declare const OmakaseMarkButtonAttributes: {
|
|
11585
|
+
REPRESENTATION: string;
|
|
11586
|
+
LABEL: string;
|
|
11587
|
+
};
|
|
11588
|
+
|
|
11589
|
+
export declare type OmakaseMarkButtonRepresentation = 'icon' | 'icon-time' | 'label-time';
|
|
11590
|
+
|
|
11226
11591
|
export declare class OmakaseMarkerBar extends OmakaseMarkerBars_base {
|
|
11227
11592
|
protected readonly _onEvent$: Subject<ChromingMarkerBarElementEvent>;
|
|
11228
11593
|
private _markerBars;
|
|
@@ -11246,6 +11611,12 @@ export declare class OmakaseMarkerBar extends OmakaseMarkerBars_base {
|
|
|
11246
11611
|
set isOmakase(isOmakase: boolean);
|
|
11247
11612
|
setLiveModel(model: UiLiveModel): void;
|
|
11248
11613
|
addMarkerBar(): OmakaseMarkerTrack;
|
|
11614
|
+
/**
|
|
11615
|
+
* Registers the `<omakase-marker-bar>` children that weren't added with {@link addMarkerBar}, e.g. the ones declared in HTML
|
|
11616
|
+
* @returns The registered marker bars
|
|
11617
|
+
*/
|
|
11618
|
+
adoptMarkerBars(): OmakaseMarkerTrack[];
|
|
11619
|
+
private registerMarkerBar;
|
|
11249
11620
|
deleteMarkerBar(barId: string): void;
|
|
11250
11621
|
addMarker(trackId: string, marker: MarkerState): void;
|
|
11251
11622
|
updateMarker(trackId: string, marker: MarkerState): void;
|
|
@@ -11655,6 +12026,7 @@ export declare class OmakaseMarkerTrack extends HTMLElement implements ChromingM
|
|
|
11655
12026
|
set config(config: Partial<ChromingMarkerBarConfig>);
|
|
11656
12027
|
get markerTracks(): MarkerTrackState[] | undefined;
|
|
11657
12028
|
set markerTracks(markerTracks: MarkerTrackState[]);
|
|
12029
|
+
get markerTrackId(): string | undefined;
|
|
11658
12030
|
get mediaDuration(): number;
|
|
11659
12031
|
set mediaDuration(duration: number);
|
|
11660
12032
|
set containerSize(containerSize: number | undefined);
|
|
@@ -11701,6 +12073,41 @@ export declare class OmakaseMarkerTrack extends HTMLElement implements ChromingM
|
|
|
11701
12073
|
private getMarkerStateOrFail;
|
|
11702
12074
|
}
|
|
11703
12075
|
|
|
12076
|
+
export declare const OmakaseMarkerTrackAttributes: {
|
|
12077
|
+
OMAKASE: string;
|
|
12078
|
+
MEDIA_DURATION: string;
|
|
12079
|
+
MARKER_ID: string;
|
|
12080
|
+
MARKER_TRACK_ID: string;
|
|
12081
|
+
};
|
|
12082
|
+
|
|
12083
|
+
export declare class OmakaseMarkInButton extends OmakaseMarkButton {
|
|
12084
|
+
private _onMarkIn;
|
|
12085
|
+
protected get iconClass(): string;
|
|
12086
|
+
protected get tooltipText(): string;
|
|
12087
|
+
protected get defaultLabel(): string;
|
|
12088
|
+
get onMarkIn(): OmakaseMarkInFn | undefined;
|
|
12089
|
+
set onMarkIn(fn: OmakaseMarkInFn | undefined);
|
|
12090
|
+
protected resolveDisplayTime(marker: Marker): number | undefined;
|
|
12091
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
12092
|
+
protected activate(track: MarkerTrack): void;
|
|
12093
|
+
}
|
|
12094
|
+
|
|
12095
|
+
export declare type OmakaseMarkInFn = (track: MarkerTrack, currentTime: number, marker: Marker | undefined) => void;
|
|
12096
|
+
|
|
12097
|
+
export declare class OmakaseMarkOutButton extends OmakaseMarkButton {
|
|
12098
|
+
private _onMarkOut;
|
|
12099
|
+
protected get iconClass(): string;
|
|
12100
|
+
protected get tooltipText(): string;
|
|
12101
|
+
protected get defaultLabel(): string;
|
|
12102
|
+
get onMarkOut(): OmakaseMarkOutFn | undefined;
|
|
12103
|
+
set onMarkOut(fn: OmakaseMarkOutFn | undefined);
|
|
12104
|
+
protected resolveDisplayTime(marker: Marker): number | undefined;
|
|
12105
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
12106
|
+
protected activate(track: MarkerTrack): void;
|
|
12107
|
+
}
|
|
12108
|
+
|
|
12109
|
+
export declare type OmakaseMarkOutFn = (track: MarkerTrack, currentTime: number, marker: Marker | undefined) => void;
|
|
12110
|
+
|
|
11704
12111
|
export declare class OmakaseMenu extends OmakaseDropdownSelector {
|
|
11705
12112
|
protected readonly dropdownIdPrefix = "omakase-menu-dropdown";
|
|
11706
12113
|
protected readonly dropdownClass: string;
|
|
@@ -11729,6 +12136,20 @@ export declare class OmakaseMenu extends OmakaseDropdownSelector {
|
|
|
11729
12136
|
private renderOptions;
|
|
11730
12137
|
}
|
|
11731
12138
|
|
|
12139
|
+
export declare const OmakaseMenuAttributes: {
|
|
12140
|
+
MENU_TITLE: string;
|
|
12141
|
+
DROPDOWN: string;
|
|
12142
|
+
ALIGNMENT: string;
|
|
12143
|
+
POSITION: string;
|
|
12144
|
+
CONTAINER_RIGHT: string;
|
|
12145
|
+
DROPDOWN_CLASS: string;
|
|
12146
|
+
TOGGLE_CLASS: string;
|
|
12147
|
+
FLOATING: string;
|
|
12148
|
+
CARET: string;
|
|
12149
|
+
TOGGLE_BACKGROUND: string;
|
|
12150
|
+
EXPAND_DIRECTION: string;
|
|
12151
|
+
};
|
|
12152
|
+
|
|
11732
12153
|
export declare interface OmakaseMenuOption {
|
|
11733
12154
|
/** Text shown in the menu, and passed to {@link OmakaseMenu.onSelect} when the option is selected. */
|
|
11734
12155
|
label: string;
|
|
@@ -12140,6 +12561,17 @@ declare const OmakaseMuteButton_base: {
|
|
|
12140
12561
|
get observedAttributes(): string[];
|
|
12141
12562
|
} & typeof MediaChromeButton;
|
|
12142
12563
|
|
|
12564
|
+
export declare const OmakaseMuteButtonAttributes: {
|
|
12565
|
+
VOLUME_FLYOUT: string;
|
|
12566
|
+
};
|
|
12567
|
+
|
|
12568
|
+
export declare class OmakaseNextMarkerButton extends OmakaseSegmentationButton {
|
|
12569
|
+
protected get iconClass(): string;
|
|
12570
|
+
protected get tooltipText(): string;
|
|
12571
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
12572
|
+
protected activate(track: MarkerTrack): void;
|
|
12573
|
+
}
|
|
12574
|
+
|
|
12143
12575
|
export declare class OmakasePlayAndRewindButton extends OmakasePlayAndRewindButton_base {
|
|
12144
12576
|
static get observedAttributes(): string[];
|
|
12145
12577
|
private _player;
|
|
@@ -12529,6 +12961,11 @@ declare const OmakasePlayAndRewindButton_base: {
|
|
|
12529
12961
|
get observedAttributes(): string[];
|
|
12530
12962
|
} & typeof MediaChromeButton;
|
|
12531
12963
|
|
|
12964
|
+
export declare const OmakasePlayAndRewindButtonAttributes: {
|
|
12965
|
+
DURATION: string;
|
|
12966
|
+
CUSTOM_DURATION: string;
|
|
12967
|
+
};
|
|
12968
|
+
|
|
12532
12969
|
export declare class OmakasePlaybackRateSelector extends OmakaseDropdownSelector {
|
|
12533
12970
|
protected readonly dropdownIdPrefix = "omakase-playback-rate-dropdown";
|
|
12534
12971
|
protected readonly dropdownClass: string;
|
|
@@ -12550,6 +12987,20 @@ export declare class OmakasePlaybackRateSelector extends OmakaseDropdownSelector
|
|
|
12550
12987
|
protected onOptionSelected(option: OmakaseDropdownListItem, player: PlayerApi | PlayerDetachedApi): void;
|
|
12551
12988
|
}
|
|
12552
12989
|
|
|
12990
|
+
export declare const OmakasePlaybackRateSelectorAttributes: {
|
|
12991
|
+
RATES: string;
|
|
12992
|
+
DROPDOWN: string;
|
|
12993
|
+
ALIGNMENT: string;
|
|
12994
|
+
POSITION: string;
|
|
12995
|
+
CONTAINER_RIGHT: string;
|
|
12996
|
+
DROPDOWN_CLASS: string;
|
|
12997
|
+
TOGGLE_CLASS: string;
|
|
12998
|
+
FLOATING: string;
|
|
12999
|
+
CARET: string;
|
|
13000
|
+
TOGGLE_BACKGROUND: string;
|
|
13001
|
+
EXPAND_DIRECTION: string;
|
|
13002
|
+
};
|
|
13003
|
+
|
|
12553
13004
|
export declare class OmakasePlayButton extends OmakasePlayButton_base {
|
|
12554
13005
|
private _player;
|
|
12555
13006
|
protected _playerBreaker: ObserverBreaker;
|
|
@@ -13117,6 +13568,20 @@ export declare interface OmakasePlayerDetachedConfigApi {
|
|
|
13117
13568
|
localization?: Localizations | undefined;
|
|
13118
13569
|
}
|
|
13119
13570
|
|
|
13571
|
+
export declare class OmakasePlayheadToMarkerEndButton extends OmakaseSegmentationButton {
|
|
13572
|
+
protected get iconClass(): string;
|
|
13573
|
+
protected get tooltipText(): string;
|
|
13574
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
13575
|
+
protected activate(track: MarkerTrack): void;
|
|
13576
|
+
}
|
|
13577
|
+
|
|
13578
|
+
export declare class OmakasePlayheadToMarkerStartButton extends OmakaseSegmentationButton {
|
|
13579
|
+
protected get iconClass(): string;
|
|
13580
|
+
protected get tooltipText(): string;
|
|
13581
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
13582
|
+
protected activate(track: MarkerTrack): void;
|
|
13583
|
+
}
|
|
13584
|
+
|
|
13120
13585
|
export declare class OmakasePreviewThumbnail extends OmakasePreviewThumbnail_base {
|
|
13121
13586
|
private _timeRange?;
|
|
13122
13587
|
private _thumbnailTrack?;
|
|
@@ -13504,6 +13969,13 @@ declare const OmakasePreviewThumbnail_base: {
|
|
|
13504
13969
|
prototype: HTMLElement;
|
|
13505
13970
|
};
|
|
13506
13971
|
|
|
13972
|
+
export declare class OmakasePreviousMarkerButton extends OmakaseSegmentationButton {
|
|
13973
|
+
protected get iconClass(): string;
|
|
13974
|
+
protected get tooltipText(): string;
|
|
13975
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
13976
|
+
protected activate(track: MarkerTrack): void;
|
|
13977
|
+
}
|
|
13978
|
+
|
|
13507
13979
|
export declare enum OmakaseProgressBarPosition {
|
|
13508
13980
|
OVER_VIDEO = "OVER_VIDEO",
|
|
13509
13981
|
UNDER_VIDEO = "UNDER_VIDEO"
|
|
@@ -13898,6 +14370,11 @@ declare const OmakaseRewindAndPlayButton_base: {
|
|
|
13898
14370
|
get observedAttributes(): string[];
|
|
13899
14371
|
} & typeof MediaChromeButton;
|
|
13900
14372
|
|
|
14373
|
+
export declare const OmakaseRewindAndPlayButtonAttributes: {
|
|
14374
|
+
DURATION: string;
|
|
14375
|
+
CUSTOM_DURATION: string;
|
|
14376
|
+
};
|
|
14377
|
+
|
|
13901
14378
|
export declare class OmakaseSafeZoneToggle extends OmakaseSafeZoneToggle_base {
|
|
13902
14379
|
static get observedAttributes(): string[];
|
|
13903
14380
|
private readonly _idPrefix;
|
|
@@ -13920,6 +14397,7 @@ export declare class OmakaseSafeZoneToggle extends OmakaseSafeZoneToggle_base {
|
|
|
13920
14397
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
13921
14398
|
handleClick(): void;
|
|
13922
14399
|
disconnectedCallback(): void;
|
|
14400
|
+
private configureFromSafeZoneAttribute;
|
|
13923
14401
|
private toSafeZoneCreate;
|
|
13924
14402
|
private addSafeZones;
|
|
13925
14403
|
private removeSafeZones;
|
|
@@ -14301,6 +14779,7 @@ declare const OmakaseSafeZoneToggle_base: {
|
|
|
14301
14779
|
|
|
14302
14780
|
export declare const OmakaseSafeZoneToggleAttributes: {
|
|
14303
14781
|
SAFE_ZONES_VISIBLE: string;
|
|
14782
|
+
SAFE_ZONE: string;
|
|
14304
14783
|
INACTIVE: string;
|
|
14305
14784
|
};
|
|
14306
14785
|
|
|
@@ -14315,114 +14794,582 @@ export declare interface OmakaseSafeZoneToggleConfig {
|
|
|
14315
14794
|
*/
|
|
14316
14795
|
export declare type OmakaseSafeZoneToggleZone = number[] | VideoSafeZoneCreate;
|
|
14317
14796
|
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
14797
|
+
/**
|
|
14798
|
+
* Shared behavior for segmentation capabilities associated with a {@link MarkerTrack}.
|
|
14799
|
+
*/
|
|
14800
|
+
export declare abstract class OmakaseSegmentationButton extends OmakaseSegmentationButton_base {
|
|
14321
14801
|
static get observedAttributes(): string[];
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
|
|
14327
|
-
protected
|
|
14328
|
-
protected
|
|
14329
|
-
protected
|
|
14330
|
-
|
|
14331
|
-
private getTracks;
|
|
14332
|
-
private getPlayerTracks;
|
|
14333
|
-
private getActiveTrackId;
|
|
14334
|
-
private getShownTrackId;
|
|
14335
|
-
}
|
|
14336
|
-
|
|
14337
|
-
export declare enum OmakaseThemeActionIcon {
|
|
14338
|
-
HELP_MENU = "HELP_MENU",
|
|
14339
|
-
FULLSCREEN_TOGGLE = "FULLSCREEN_TOGGLE",
|
|
14340
|
-
AUDIO_TOGGLE = "AUDIO_TOGGLE",
|
|
14341
|
-
VOLUME = "VOLUME",
|
|
14342
|
-
CONTROL_BAR_TOGGLE = "CONTROL_BAR_TOGGLE"
|
|
14343
|
-
}
|
|
14344
|
-
|
|
14345
|
-
export declare interface OmakaseThemeConfig extends OmakaseThemeConfigUpdateableAttrs {
|
|
14346
|
-
/**
|
|
14347
|
-
* Specifies the list of enabled floating controls
|
|
14348
|
-
*/
|
|
14349
|
-
floatingControls: OmakaseThemeFloatingControl[];
|
|
14350
|
-
/**
|
|
14351
|
-
* Specifies the list of floating controls that are shown when the video is playing
|
|
14352
|
-
*/
|
|
14353
|
-
alwaysOnFloatingControls: OmakaseThemeFloatingControl[];
|
|
14354
|
-
/**
|
|
14355
|
-
* Specifies the list of enabled action icons
|
|
14356
|
-
*/
|
|
14357
|
-
actionIcons: OmakaseThemeActionIcon[];
|
|
14358
|
-
/**
|
|
14359
|
-
* Sets the available playback rates in menu
|
|
14360
|
-
*/
|
|
14361
|
-
playbackRates: number[];
|
|
14362
|
-
/**
|
|
14363
|
-
* Id of the custom web component used for Player chroming
|
|
14364
|
-
*/
|
|
14365
|
-
htmlTemplateId?: string;
|
|
14366
|
-
}
|
|
14367
|
-
|
|
14368
|
-
export declare interface OmakaseThemeConfigUpdateableAttrs {
|
|
14369
|
-
/**
|
|
14370
|
-
* Specifies which time format will be used in the timer control
|
|
14371
|
-
*/
|
|
14372
|
-
timeFormat: ChromingTimeFormat;
|
|
14373
|
-
/**
|
|
14374
|
-
* Specifies if the time control can be used for seeking. It is activated by double clicking the time.
|
|
14375
|
-
*/
|
|
14376
|
-
timeInteractive: boolean;
|
|
14377
|
-
/**
|
|
14378
|
-
* Specifies control bar visibility
|
|
14379
|
-
*/
|
|
14380
|
-
controlBarVisibility: OmakaseControlBarVisibility;
|
|
14381
|
-
/**
|
|
14382
|
-
* Specifies controls visibility
|
|
14383
|
-
*/
|
|
14384
|
-
controlBar: OmakaseThemeControl[];
|
|
14802
|
+
private _player;
|
|
14803
|
+
private _track;
|
|
14804
|
+
private _ui;
|
|
14805
|
+
protected _iconSpan: HTMLSpanElement | undefined;
|
|
14806
|
+
protected _tooltip: HTMLElement | undefined;
|
|
14807
|
+
protected _wireBreaker: ObserverBreaker;
|
|
14808
|
+
protected _destroyBreaker: ObserverBreaker;
|
|
14809
|
+
protected abstract get iconClass(): string;
|
|
14810
|
+
protected abstract get tooltipText(): string;
|
|
14385
14811
|
/**
|
|
14386
|
-
*
|
|
14812
|
+
* Whether the capability is currently active for the given, already-resolved marker track.
|
|
14813
|
+
* Only called when a marker track resolves and {@link enabled} is `true`. Defaults to `true`,
|
|
14387
14814
|
*/
|
|
14388
|
-
|
|
14815
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
14389
14816
|
/**
|
|
14390
|
-
*
|
|
14817
|
+
* Invoked on click (or keyboard activation) while the capability is active, with its resolved
|
|
14818
|
+
* marker track.
|
|
14391
14819
|
*/
|
|
14392
|
-
|
|
14820
|
+
protected abstract activate(track: MarkerTrack): void;
|
|
14821
|
+
get player(): PlayerApi | PlayerDetachedApi | undefined;
|
|
14822
|
+
set player(player: PlayerApi | PlayerDetachedApi | undefined);
|
|
14823
|
+
get track(): OmakaseTrackApi | undefined;
|
|
14824
|
+
set track(track: OmakaseTrackApi | undefined);
|
|
14825
|
+
get ui(): UiApi | undefined;
|
|
14826
|
+
set ui(ui: UiApi | undefined);
|
|
14827
|
+
get markerTrackId(): string | undefined;
|
|
14828
|
+
set markerTrackId(value: string | undefined);
|
|
14829
|
+
connectedCallback(): void;
|
|
14830
|
+
protected buildContent(): void;
|
|
14831
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
14832
|
+
handleClick(): void;
|
|
14833
|
+
disconnectedCallback(): void;
|
|
14834
|
+
private wire;
|
|
14835
|
+
protected resolveMarkerTrack(): MarkerTrack | undefined;
|
|
14393
14836
|
/**
|
|
14394
|
-
*
|
|
14837
|
+
* Finds every marker on `track` whose `focused` {@link UiElementProps} is `true` (see
|
|
14838
|
+
* `UiApi.updateElement`). Available to subclasses whose activity/behavior depends on which
|
|
14839
|
+
* marker(s) are currently active/selected.
|
|
14395
14840
|
*/
|
|
14396
|
-
|
|
14841
|
+
protected resolveActiveMarkers(track: MarkerTrack): Marker[];
|
|
14397
14842
|
/**
|
|
14398
|
-
*
|
|
14843
|
+
* Finds the first marker on `track` whose `focused` {@link UiElementProps} is `true`, if any.
|
|
14399
14844
|
*/
|
|
14400
|
-
|
|
14845
|
+
protected resolveActiveMarker(track: MarkerTrack): Marker | undefined;
|
|
14846
|
+
protected updateActiveState(): void;
|
|
14401
14847
|
/**
|
|
14402
|
-
*
|
|
14848
|
+
* Element whose {@link SegmentationDomClasses.disabled} class reflects whether the capability
|
|
14849
|
+
* is currently active. Defaults to the icon span; subclasses with a different visual (e.g. a
|
|
14850
|
+
* text label instead of an icon) can override this.
|
|
14403
14851
|
*/
|
|
14404
|
-
|
|
14405
|
-
}
|
|
14406
|
-
|
|
14407
|
-
export declare enum OmakaseThemeControl {
|
|
14408
|
-
PLAY = "PLAY",
|
|
14409
|
-
FRAME_FORWARD = "FRAME_FORWARD",
|
|
14410
|
-
TEN_FRAMES_FORWARD = "TEN_FRAMES_FORWARD",
|
|
14411
|
-
FRAME_BACKWARD = "FRAME_BACKWARD",
|
|
14412
|
-
TEN_FRAMES_BACKWARD = "TEN_FRAMES_BACKWARD",
|
|
14413
|
-
FULLSCREEN_TOGGLE = "FULLSCREEN_TOGGLE",
|
|
14414
|
-
VOLUME = "VOLUME",
|
|
14415
|
-
TRACK_SELECTOR = "TRACK_SELECTOR",
|
|
14416
|
-
PLAYBACK_RATE = "PLAYBACK_RATE",
|
|
14417
|
-
DETACH_TOGGLE = "DETACH_TOGGLE",
|
|
14418
|
-
TIME_TOGGLE = "TIME_TOGGLE",
|
|
14419
|
-
CLOSE = "CLOSE",
|
|
14420
|
-
ROUTER = "ROUTER",
|
|
14421
|
-
VU_METER = "VU_METER",
|
|
14422
|
-
VU_METER_TOGGLE = "VU_METER_TOGGLE"
|
|
14852
|
+
protected get disabledStateElement(): HTMLElement | undefined;
|
|
14423
14853
|
}
|
|
14424
14854
|
|
|
14425
|
-
|
|
14855
|
+
declare const OmakaseSegmentationButton_base: {
|
|
14856
|
+
new (...args: any[]): {
|
|
14857
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
14858
|
+
connectedCallback(): void;
|
|
14859
|
+
get enabled(): boolean;
|
|
14860
|
+
set enabled(enabled: boolean);
|
|
14861
|
+
get shortcutEnabled(): boolean;
|
|
14862
|
+
set shortcutEnabled(enabled: boolean);
|
|
14863
|
+
get shortcut(): string | undefined;
|
|
14864
|
+
set shortcut(shortcut: string | undefined);
|
|
14865
|
+
get visible(): boolean;
|
|
14866
|
+
set visible(visible: boolean);
|
|
14867
|
+
setEnabled(enabled: boolean): void;
|
|
14868
|
+
setShortcutEnabled(enabled: boolean): void;
|
|
14869
|
+
setShortcut(shortcut: string | undefined): void;
|
|
14870
|
+
setVisible(visible: boolean): void;
|
|
14871
|
+
accessKey: string;
|
|
14872
|
+
readonly accessKeyLabel: string;
|
|
14873
|
+
autocapitalize: string;
|
|
14874
|
+
autocorrect: boolean;
|
|
14875
|
+
dir: string;
|
|
14876
|
+
draggable: boolean;
|
|
14877
|
+
hidden: boolean;
|
|
14878
|
+
inert: boolean;
|
|
14879
|
+
innerText: string;
|
|
14880
|
+
lang: string;
|
|
14881
|
+
readonly offsetHeight: number;
|
|
14882
|
+
readonly offsetLeft: number;
|
|
14883
|
+
readonly offsetParent: Element | null;
|
|
14884
|
+
readonly offsetTop: number;
|
|
14885
|
+
readonly offsetWidth: number;
|
|
14886
|
+
outerText: string;
|
|
14887
|
+
popover: string | null;
|
|
14888
|
+
spellcheck: boolean;
|
|
14889
|
+
title: string;
|
|
14890
|
+
translate: boolean;
|
|
14891
|
+
writingSuggestions: string;
|
|
14892
|
+
attachInternals(): ElementInternals;
|
|
14893
|
+
click(): void;
|
|
14894
|
+
hidePopover(): void;
|
|
14895
|
+
showPopover(): void;
|
|
14896
|
+
togglePopover(options?: boolean): boolean;
|
|
14897
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
14898
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
14899
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
14900
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
14901
|
+
readonly attributes: NamedNodeMap;
|
|
14902
|
+
get classList(): DOMTokenList;
|
|
14903
|
+
set classList(value: string);
|
|
14904
|
+
className: string;
|
|
14905
|
+
readonly clientHeight: number;
|
|
14906
|
+
readonly clientLeft: number;
|
|
14907
|
+
readonly clientTop: number;
|
|
14908
|
+
readonly clientWidth: number;
|
|
14909
|
+
readonly currentCSSZoom: number;
|
|
14910
|
+
id: string;
|
|
14911
|
+
innerHTML: string;
|
|
14912
|
+
readonly localName: string;
|
|
14913
|
+
readonly namespaceURI: string | null;
|
|
14914
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
14915
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
14916
|
+
outerHTML: string;
|
|
14917
|
+
readonly ownerDocument: Document;
|
|
14918
|
+
get part(): DOMTokenList;
|
|
14919
|
+
set part(value: string);
|
|
14920
|
+
readonly prefix: string | null;
|
|
14921
|
+
readonly scrollHeight: number;
|
|
14922
|
+
scrollLeft: number;
|
|
14923
|
+
scrollTop: number;
|
|
14924
|
+
readonly scrollWidth: number;
|
|
14925
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
14926
|
+
slot: string;
|
|
14927
|
+
readonly tagName: string;
|
|
14928
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
14929
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
14930
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
14931
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
14932
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
14933
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
14934
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
14935
|
+
getAttribute(qualifiedName: string): string | null;
|
|
14936
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
14937
|
+
getAttributeNames(): string[];
|
|
14938
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
14939
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
14940
|
+
getBoundingClientRect(): DOMRect;
|
|
14941
|
+
getClientRects(): DOMRectList;
|
|
14942
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
14943
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
14944
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
14945
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
14946
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
14947
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
14948
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
14949
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
14950
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
14951
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
14952
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
14953
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
14954
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
14955
|
+
hasAttributes(): boolean;
|
|
14956
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
14957
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
14958
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
14959
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
14960
|
+
matches(selectors: string): boolean;
|
|
14961
|
+
releasePointerCapture(pointerId: number): void;
|
|
14962
|
+
removeAttribute(qualifiedName: string): void;
|
|
14963
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
14964
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
14965
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
14966
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
14967
|
+
scroll(options?: ScrollToOptions): void;
|
|
14968
|
+
scroll(x: number, y: number): void;
|
|
14969
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
14970
|
+
scrollBy(x: number, y: number): void;
|
|
14971
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
14972
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
14973
|
+
scrollTo(x: number, y: number): void;
|
|
14974
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
14975
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
14976
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
14977
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
14978
|
+
setHTMLUnsafe(html: string): void;
|
|
14979
|
+
setPointerCapture(pointerId: number): void;
|
|
14980
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
14981
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
14982
|
+
get textContent(): string;
|
|
14983
|
+
set textContent(value: string | null);
|
|
14984
|
+
readonly baseURI: string;
|
|
14985
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
14986
|
+
readonly firstChild: ChildNode | null;
|
|
14987
|
+
readonly isConnected: boolean;
|
|
14988
|
+
readonly lastChild: ChildNode | null;
|
|
14989
|
+
readonly nextSibling: ChildNode | null;
|
|
14990
|
+
readonly nodeName: string;
|
|
14991
|
+
readonly nodeType: number;
|
|
14992
|
+
nodeValue: string | null;
|
|
14993
|
+
readonly parentElement: HTMLElement | null;
|
|
14994
|
+
readonly parentNode: ParentNode | null;
|
|
14995
|
+
readonly previousSibling: ChildNode | null;
|
|
14996
|
+
appendChild<T extends Node>(node: T): T;
|
|
14997
|
+
cloneNode(subtree?: boolean): Node;
|
|
14998
|
+
compareDocumentPosition(other: Node): number;
|
|
14999
|
+
contains(other: Node | null): boolean;
|
|
15000
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
15001
|
+
hasChildNodes(): boolean;
|
|
15002
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
15003
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
15004
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
15005
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
15006
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
15007
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
15008
|
+
normalize(): void;
|
|
15009
|
+
removeChild<T extends Node>(child: T): T;
|
|
15010
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
15011
|
+
readonly ELEMENT_NODE: 1;
|
|
15012
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
15013
|
+
readonly TEXT_NODE: 3;
|
|
15014
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
15015
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
15016
|
+
readonly ENTITY_NODE: 6;
|
|
15017
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
15018
|
+
readonly COMMENT_NODE: 8;
|
|
15019
|
+
readonly DOCUMENT_NODE: 9;
|
|
15020
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
15021
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
15022
|
+
readonly NOTATION_NODE: 12;
|
|
15023
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
15024
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
15025
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
15026
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
15027
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
15028
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
15029
|
+
dispatchEvent(event: Event): boolean;
|
|
15030
|
+
ariaActiveDescendantElement: Element | null;
|
|
15031
|
+
ariaAtomic: string | null;
|
|
15032
|
+
ariaAutoComplete: string | null;
|
|
15033
|
+
ariaBrailleLabel: string | null;
|
|
15034
|
+
ariaBrailleRoleDescription: string | null;
|
|
15035
|
+
ariaBusy: string | null;
|
|
15036
|
+
ariaChecked: string | null;
|
|
15037
|
+
ariaColCount: string | null;
|
|
15038
|
+
ariaColIndex: string | null;
|
|
15039
|
+
ariaColIndexText: string | null;
|
|
15040
|
+
ariaColSpan: string | null;
|
|
15041
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
15042
|
+
ariaCurrent: string | null;
|
|
15043
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
15044
|
+
ariaDescription: string | null;
|
|
15045
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
15046
|
+
ariaDisabled: string | null;
|
|
15047
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
15048
|
+
ariaExpanded: string | null;
|
|
15049
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
15050
|
+
ariaHasPopup: string | null;
|
|
15051
|
+
ariaHidden: string | null;
|
|
15052
|
+
ariaInvalid: string | null;
|
|
15053
|
+
ariaKeyShortcuts: string | null;
|
|
15054
|
+
ariaLabel: string | null;
|
|
15055
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
15056
|
+
ariaLevel: string | null;
|
|
15057
|
+
ariaLive: string | null;
|
|
15058
|
+
ariaModal: string | null;
|
|
15059
|
+
ariaMultiLine: string | null;
|
|
15060
|
+
ariaMultiSelectable: string | null;
|
|
15061
|
+
ariaOrientation: string | null;
|
|
15062
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
15063
|
+
ariaPlaceholder: string | null;
|
|
15064
|
+
ariaPosInSet: string | null;
|
|
15065
|
+
ariaPressed: string | null;
|
|
15066
|
+
ariaReadOnly: string | null;
|
|
15067
|
+
ariaRelevant: string | null;
|
|
15068
|
+
ariaRequired: string | null;
|
|
15069
|
+
ariaRoleDescription: string | null;
|
|
15070
|
+
ariaRowCount: string | null;
|
|
15071
|
+
ariaRowIndex: string | null;
|
|
15072
|
+
ariaRowIndexText: string | null;
|
|
15073
|
+
ariaRowSpan: string | null;
|
|
15074
|
+
ariaSelected: string | null;
|
|
15075
|
+
ariaSetSize: string | null;
|
|
15076
|
+
ariaSort: string | null;
|
|
15077
|
+
ariaValueMax: string | null;
|
|
15078
|
+
ariaValueMin: string | null;
|
|
15079
|
+
ariaValueNow: string | null;
|
|
15080
|
+
ariaValueText: string | null;
|
|
15081
|
+
role: string | null;
|
|
15082
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
15083
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
15084
|
+
after(...nodes: (Node | string)[]): void;
|
|
15085
|
+
before(...nodes: (Node | string)[]): void;
|
|
15086
|
+
remove(): void;
|
|
15087
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
15088
|
+
readonly nextElementSibling: Element | null;
|
|
15089
|
+
readonly previousElementSibling: Element | null;
|
|
15090
|
+
readonly childElementCount: number;
|
|
15091
|
+
readonly children: HTMLCollection;
|
|
15092
|
+
readonly firstElementChild: Element | null;
|
|
15093
|
+
readonly lastElementChild: Element | null;
|
|
15094
|
+
append(...nodes: (Node | string)[]): void;
|
|
15095
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
15096
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
15097
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
15098
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
15099
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
15100
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
15101
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
15102
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
15103
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
15104
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
15105
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
15106
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
15107
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
15108
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
15109
|
+
get style(): CSSStyleDeclaration;
|
|
15110
|
+
set style(cssText: string);
|
|
15111
|
+
contentEditable: string;
|
|
15112
|
+
enterKeyHint: string;
|
|
15113
|
+
inputMode: string;
|
|
15114
|
+
readonly isContentEditable: boolean;
|
|
15115
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
15116
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
15117
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
15118
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
15119
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
15120
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15121
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
15122
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15123
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
15124
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
15125
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15126
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15127
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15128
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15129
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15130
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15131
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15132
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15133
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15134
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
15135
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15136
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
15137
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15138
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15139
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15140
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15141
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15142
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15143
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15144
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
15145
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15146
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15147
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15148
|
+
onerror: OnErrorEventHandler;
|
|
15149
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
15150
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
15151
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15152
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15153
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15154
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
15155
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
15156
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
15157
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15158
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15159
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15160
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15161
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15162
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15163
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15164
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15165
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15166
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15167
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15168
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
15169
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
15170
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15171
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15172
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15173
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15174
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15175
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15176
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15177
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15178
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15179
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15180
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15181
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
15182
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
15183
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15184
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15185
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
15186
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15187
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15188
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
15189
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15190
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15191
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15192
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15193
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15194
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15195
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15196
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
15197
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15198
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15199
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
15200
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
15201
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
15202
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
15203
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
15204
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
15205
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
15206
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
15207
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
15208
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15209
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15210
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15211
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15212
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15213
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
15214
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
15215
|
+
autofocus: boolean;
|
|
15216
|
+
readonly dataset: DOMStringMap;
|
|
15217
|
+
nonce?: string;
|
|
15218
|
+
tabIndex: number;
|
|
15219
|
+
blur(): void;
|
|
15220
|
+
focus(options?: FocusOptions): void;
|
|
15221
|
+
};
|
|
15222
|
+
get observedAttributes(): string[];
|
|
15223
|
+
} & typeof MediaChromeButton;
|
|
15224
|
+
|
|
15225
|
+
export declare const OmakaseSegmentationButtonAttributes: {
|
|
15226
|
+
MARKER_TRACK_ID: string;
|
|
15227
|
+
INACTIVE: string;
|
|
15228
|
+
};
|
|
15229
|
+
|
|
15230
|
+
export declare class OmakaseSplitMarkerButton extends OmakaseSegmentationButton {
|
|
15231
|
+
protected _playerBreaker: ObserverBreaker;
|
|
15232
|
+
protected get iconClass(): string;
|
|
15233
|
+
protected get tooltipText(): string;
|
|
15234
|
+
/**
|
|
15235
|
+
* Color assigned to the right-most marker resulting from a split. Defaults to `#EE7A76` when
|
|
15236
|
+
* unset.
|
|
15237
|
+
*/
|
|
15238
|
+
get splitColor(): string;
|
|
15239
|
+
set splitColor(value: string | undefined);
|
|
15240
|
+
get player(): PlayerApi | PlayerDetachedApi | undefined;
|
|
15241
|
+
set player(player: PlayerApi | PlayerDetachedApi | undefined);
|
|
15242
|
+
protected isCapabilityActive(track: MarkerTrack): boolean;
|
|
15243
|
+
protected activate(track: MarkerTrack): void;
|
|
15244
|
+
disconnectedCallback(): void;
|
|
15245
|
+
}
|
|
15246
|
+
|
|
15247
|
+
export declare const OmakaseSplitMarkerButtonAttributes: {
|
|
15248
|
+
SPLIT_COLOR: string;
|
|
15249
|
+
};
|
|
15250
|
+
|
|
15251
|
+
export declare class OmakaseTextSelector extends OmakaseDropdownSelector {
|
|
15252
|
+
protected readonly dropdownIdPrefix = "omakase-text-dropdown";
|
|
15253
|
+
protected readonly dropdownClass: string;
|
|
15254
|
+
static get observedAttributes(): string[];
|
|
15255
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
15256
|
+
get offOption(): boolean;
|
|
15257
|
+
set offOption(offOption: boolean);
|
|
15258
|
+
private get refreshEventTypes();
|
|
15259
|
+
refresh(): void;
|
|
15260
|
+
protected renderDropdownLists(dropdownId: string): string;
|
|
15261
|
+
protected subscribeToPlayer(player: PlayerApi | PlayerDetachedApi): void;
|
|
15262
|
+
protected onOptionSelected(option: OmakaseDropdownListItem, player: PlayerApi | PlayerDetachedApi): void;
|
|
15263
|
+
private getOptions;
|
|
15264
|
+
private getTracks;
|
|
15265
|
+
private getPlayerTracks;
|
|
15266
|
+
private getActiveTrackId;
|
|
15267
|
+
private getShownTrackId;
|
|
15268
|
+
}
|
|
15269
|
+
|
|
15270
|
+
export declare const OmakaseTextSelectorAttributes: {
|
|
15271
|
+
OFF_OPTION: string;
|
|
15272
|
+
DROPDOWN: string;
|
|
15273
|
+
ALIGNMENT: string;
|
|
15274
|
+
POSITION: string;
|
|
15275
|
+
CONTAINER_RIGHT: string;
|
|
15276
|
+
DROPDOWN_CLASS: string;
|
|
15277
|
+
TOGGLE_CLASS: string;
|
|
15278
|
+
FLOATING: string;
|
|
15279
|
+
CARET: string;
|
|
15280
|
+
TOGGLE_BACKGROUND: string;
|
|
15281
|
+
EXPAND_DIRECTION: string;
|
|
15282
|
+
};
|
|
15283
|
+
|
|
15284
|
+
export declare enum OmakaseThemeActionIcon {
|
|
15285
|
+
HELP_MENU = "HELP_MENU",
|
|
15286
|
+
FULLSCREEN_TOGGLE = "FULLSCREEN_TOGGLE",
|
|
15287
|
+
AUDIO_TOGGLE = "AUDIO_TOGGLE",
|
|
15288
|
+
VOLUME = "VOLUME",
|
|
15289
|
+
CONTROL_BAR_TOGGLE = "CONTROL_BAR_TOGGLE"
|
|
15290
|
+
}
|
|
15291
|
+
|
|
15292
|
+
export declare interface OmakaseThemeConfig extends OmakaseThemeConfigUpdateableAttrs {
|
|
15293
|
+
/**
|
|
15294
|
+
* Specifies the list of enabled floating controls
|
|
15295
|
+
*/
|
|
15296
|
+
floatingControls: OmakaseThemeFloatingControl[];
|
|
15297
|
+
/**
|
|
15298
|
+
* Specifies the list of floating controls that are shown when the video is playing
|
|
15299
|
+
*/
|
|
15300
|
+
alwaysOnFloatingControls: OmakaseThemeFloatingControl[];
|
|
15301
|
+
/**
|
|
15302
|
+
* Specifies the list of enabled action icons
|
|
15303
|
+
*/
|
|
15304
|
+
actionIcons: OmakaseThemeActionIcon[];
|
|
15305
|
+
/**
|
|
15306
|
+
* Sets the available playback rates in menu
|
|
15307
|
+
*/
|
|
15308
|
+
playbackRates: number[];
|
|
15309
|
+
/**
|
|
15310
|
+
* Id of the custom web component used for Player chroming
|
|
15311
|
+
*/
|
|
15312
|
+
htmlTemplateId?: string;
|
|
15313
|
+
}
|
|
15314
|
+
|
|
15315
|
+
export declare interface OmakaseThemeConfigUpdateableAttrs {
|
|
15316
|
+
/**
|
|
15317
|
+
* Specifies which time format will be used in the timer control
|
|
15318
|
+
*/
|
|
15319
|
+
timeFormat: ChromingTimeFormat;
|
|
15320
|
+
/**
|
|
15321
|
+
* Specifies if the time control can be used for seeking. It is activated by double clicking the time.
|
|
15322
|
+
*/
|
|
15323
|
+
timeInteractive: boolean;
|
|
15324
|
+
/**
|
|
15325
|
+
* Specifies control bar visibility
|
|
15326
|
+
*/
|
|
15327
|
+
controlBarVisibility: OmakaseControlBarVisibility;
|
|
15328
|
+
/**
|
|
15329
|
+
* Specifies controls visibility
|
|
15330
|
+
*/
|
|
15331
|
+
controlBar: OmakaseThemeControl[];
|
|
15332
|
+
/**
|
|
15333
|
+
* Specifies control bar position
|
|
15334
|
+
*/
|
|
15335
|
+
progressBarPosition: OmakaseProgressBarPosition;
|
|
15336
|
+
/**
|
|
15337
|
+
* Specifies if the floating VU meter is displayed
|
|
15338
|
+
*/
|
|
15339
|
+
isFloatingVuMeterVisible: boolean;
|
|
15340
|
+
/**
|
|
15341
|
+
* Shared configuration for control bar and floating VU meters
|
|
15342
|
+
*/
|
|
15343
|
+
vuMeterConfig: Partial<ChromingVuMeterConfig>;
|
|
15344
|
+
/**
|
|
15345
|
+
* Override values for the floating VU meter configuration
|
|
15346
|
+
*/
|
|
15347
|
+
floatingVuMeterConfig?: Partial<ChromingVuMeterConfig> | undefined;
|
|
15348
|
+
/**
|
|
15349
|
+
* Override values for the control bar VU meter configuration
|
|
15350
|
+
*/
|
|
15351
|
+
controlBarVuMeterConfig?: Partial<ChromingVuMeterConfig> | undefined;
|
|
15352
|
+
}
|
|
15353
|
+
|
|
15354
|
+
export declare enum OmakaseThemeControl {
|
|
15355
|
+
PLAY = "PLAY",
|
|
15356
|
+
FRAME_FORWARD = "FRAME_FORWARD",
|
|
15357
|
+
TEN_FRAMES_FORWARD = "TEN_FRAMES_FORWARD",
|
|
15358
|
+
FRAME_BACKWARD = "FRAME_BACKWARD",
|
|
15359
|
+
TEN_FRAMES_BACKWARD = "TEN_FRAMES_BACKWARD",
|
|
15360
|
+
FULLSCREEN_TOGGLE = "FULLSCREEN_TOGGLE",
|
|
15361
|
+
VOLUME = "VOLUME",
|
|
15362
|
+
TRACK_SELECTOR = "TRACK_SELECTOR",
|
|
15363
|
+
PLAYBACK_RATE = "PLAYBACK_RATE",
|
|
15364
|
+
DETACH_TOGGLE = "DETACH_TOGGLE",
|
|
15365
|
+
TIME_TOGGLE = "TIME_TOGGLE",
|
|
15366
|
+
CLOSE = "CLOSE",
|
|
15367
|
+
ROUTER = "ROUTER",
|
|
15368
|
+
VU_METER = "VU_METER",
|
|
15369
|
+
VU_METER_TOGGLE = "VU_METER_TOGGLE"
|
|
15370
|
+
}
|
|
15371
|
+
|
|
15372
|
+
export declare enum OmakaseThemeFloatingControl {
|
|
14426
15373
|
PROGRESS_BAR = "PROGRESS_BAR",
|
|
14427
15374
|
TIME = "TIME",
|
|
14428
15375
|
PLAYBACK_CONTROLS = "PLAYBACK_CONTROLS",
|
|
@@ -14846,7 +15793,15 @@ declare const OmakaseTimeDisplay_base: {
|
|
|
14846
15793
|
prototype: HTMLElement;
|
|
14847
15794
|
};
|
|
14848
15795
|
|
|
14849
|
-
declare
|
|
15796
|
+
export declare const OmakaseTimeDisplayAttributes: {
|
|
15797
|
+
FORMAT: string;
|
|
15798
|
+
COUNTDOWN: string;
|
|
15799
|
+
AUDIO: string;
|
|
15800
|
+
WITH_DURATION: string;
|
|
15801
|
+
EDITABLE: string;
|
|
15802
|
+
};
|
|
15803
|
+
|
|
15804
|
+
export declare type OmakaseTimeDisplayFormat = 'timecode' | 'standard';
|
|
14850
15805
|
|
|
14851
15806
|
export declare class OmakaseTimeEdit extends HTMLElement {
|
|
14852
15807
|
static get observedAttributes(): string[];
|
|
@@ -15381,6 +16336,12 @@ declare const OmakaseTimeRange_base: {
|
|
|
15381
16336
|
get observedAttributes(): string[];
|
|
15382
16337
|
} & typeof MediaTimeRange;
|
|
15383
16338
|
|
|
16339
|
+
export declare const OmakaseTimeRangeAttributes: {
|
|
16340
|
+
NAME: string;
|
|
16341
|
+
OMAKASE: string;
|
|
16342
|
+
MARKER_ID: string;
|
|
16343
|
+
};
|
|
16344
|
+
|
|
15384
16345
|
export declare class OmakaseTimeSkipButton extends OmakaseTimeSkipButton_base {
|
|
15385
16346
|
static get observedAttributes(): string[];
|
|
15386
16347
|
private _player;
|
|
@@ -15769,7 +16730,12 @@ declare const OmakaseTimeSkipButton_base: {
|
|
|
15769
16730
|
get observedAttributes(): string[];
|
|
15770
16731
|
} & typeof MediaChromeButton;
|
|
15771
16732
|
|
|
15772
|
-
declare
|
|
16733
|
+
export declare const OmakaseTimeSkipButtonAttributes: {
|
|
16734
|
+
UNIT: string;
|
|
16735
|
+
AMOUNT: string;
|
|
16736
|
+
};
|
|
16737
|
+
|
|
16738
|
+
export declare type OmakaseTimeSkipUnit = 'frame' | 'second' | 'percent';
|
|
15773
16739
|
|
|
15774
16740
|
export declare class OmakaseTimeToggle extends OmakaseTimeToggle_base {
|
|
15775
16741
|
private _chroming;
|
|
@@ -16304,7 +17270,21 @@ export declare class OmakaseTrackSelector extends OmakaseDropdownSelector {
|
|
|
16304
17270
|
private hideRouter;
|
|
16305
17271
|
}
|
|
16306
17272
|
|
|
16307
|
-
declare
|
|
17273
|
+
export declare const OmakaseTrackSelectorAttributes: {
|
|
17274
|
+
ROUTER: string;
|
|
17275
|
+
DROPDOWN: string;
|
|
17276
|
+
ALIGNMENT: string;
|
|
17277
|
+
POSITION: string;
|
|
17278
|
+
CONTAINER_RIGHT: string;
|
|
17279
|
+
DROPDOWN_CLASS: string;
|
|
17280
|
+
TOGGLE_CLASS: string;
|
|
17281
|
+
FLOATING: string;
|
|
17282
|
+
CARET: string;
|
|
17283
|
+
TOGGLE_BACKGROUND: string;
|
|
17284
|
+
EXPAND_DIRECTION: string;
|
|
17285
|
+
};
|
|
17286
|
+
|
|
17287
|
+
export declare type OmakaseVolumeFlyoutDirection = 'left' | 'right' | 'up' | 'down';
|
|
16308
17288
|
|
|
16309
17289
|
export declare class OmakaseVolumeRange extends OmakaseVolumeRange_base {
|
|
16310
17290
|
private _player;
|
|
@@ -17268,10 +18248,8 @@ export declare class Player implements PlayerApi, Destroyable {
|
|
|
17268
18248
|
setMediaRotation(mediaRotation: MediaRotationValue): Observable<void>;
|
|
17269
18249
|
protected sanitizeMediaRotation(mediaRotation: MediaRotationValue): MediaRotationValue;
|
|
17270
18250
|
unloadMainMedia(): Observable<void>;
|
|
17271
|
-
getPlaybackEngine(
|
|
17272
|
-
getPlaybackEngine(mainMediaType:
|
|
17273
|
-
getPlaybackEngine(mainMediaType: MainMediaType.AUDIO_FILE): PlayerPlaybackEngineMapping[MainMediaType.AUDIO_FILE];
|
|
17274
|
-
getPlaybackEngine(mainMediaType: MainMediaType.SLATE): PlayerPlaybackEngineMapping[MainMediaType.SLATE];
|
|
18251
|
+
getPlaybackEngine(): AnyPlayerPlaybackEngine | undefined;
|
|
18252
|
+
getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T] | undefined;
|
|
17275
18253
|
toggleFullScreen(): Observable<void>;
|
|
17276
18254
|
isFullScreen(): boolean;
|
|
17277
18255
|
extractVideoKeyframe(options?: VideoKeyframeOptions): Observable<VideoKeyframe>;
|
|
@@ -17349,19 +18327,20 @@ export declare interface PlayerApi extends PlayerCommonApi {
|
|
|
17349
18327
|
* Restores a previously persisted player session (playback position, audio/text state, etc.).
|
|
17350
18328
|
*/
|
|
17351
18329
|
restorePlayerSession(playerSession: PlayerSession): Observable<void>;
|
|
17352
|
-
/** @ignore */
|
|
17353
|
-
getPlaybackEngine(mainMediaType: MainMediaType.HLS): PlayerPlaybackEngineMapping[MainMediaType.HLS];
|
|
17354
|
-
/** @ignore */
|
|
17355
|
-
getPlaybackEngine(mainMediaType: MainMediaType.MP4): PlayerPlaybackEngineMapping[MainMediaType.MP4];
|
|
17356
|
-
/** @ignore */
|
|
17357
|
-
getPlaybackEngine(mainMediaType: MainMediaType.AUDIO_FILE): PlayerPlaybackEngineMapping[MainMediaType.AUDIO_FILE];
|
|
17358
|
-
/** @ignore */
|
|
17359
|
-
getPlaybackEngine(mainMediaType: MainMediaType.SLATE): PlayerPlaybackEngineMapping[MainMediaType.SLATE];
|
|
17360
18330
|
/**
|
|
17361
|
-
* Returns the playback engine
|
|
17362
|
-
*
|
|
18331
|
+
* Returns the playback engine of the currently loaded main media, providing access to
|
|
18332
|
+
* engine-specific internals (e.g. hls.js instance). Narrow the result on {@link PlayerPlaybackEngine.mainMediaType}.
|
|
18333
|
+
*
|
|
18334
|
+
* @returns Playback engine, or undefined if main media is not loaded.
|
|
18335
|
+
*/
|
|
18336
|
+
getPlaybackEngine(): AnyPlayerPlaybackEngine | undefined;
|
|
18337
|
+
/**
|
|
18338
|
+
* Returns the playback engine of the currently loaded main media, only if it is of the given main media type.
|
|
18339
|
+
*
|
|
18340
|
+
* @param mainMediaType - Expected main media type.
|
|
18341
|
+
* @returns Playback engine, or undefined if main media is not loaded or is of a different type.
|
|
17363
18342
|
*/
|
|
17364
|
-
getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T];
|
|
18343
|
+
getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T] | undefined;
|
|
17365
18344
|
/** Whether the player is currently in fullscreen mode. */
|
|
17366
18345
|
isFullScreen(): boolean;
|
|
17367
18346
|
/**
|
|
@@ -18431,11 +19410,8 @@ export declare interface PlayerLocalApi extends PlayerInternalApi, Destroyable {
|
|
|
18431
19410
|
setChromingInternal(chroming: ChromingInternalApi): void;
|
|
18432
19411
|
loadMainMedia(mainMediaId: MainMedia['id']): Observable<MainMedia>;
|
|
18433
19412
|
clearPlayerSession(): void;
|
|
18434
|
-
getPlaybackEngine(
|
|
18435
|
-
getPlaybackEngine(mainMediaType:
|
|
18436
|
-
getPlaybackEngine(mainMediaType: MainMediaType.AUDIO_FILE): PlayerPlaybackEngineMapping[MainMediaType.AUDIO_FILE];
|
|
18437
|
-
getPlaybackEngine(mainMediaType: MainMediaType.SLATE): PlayerPlaybackEngineMapping[MainMediaType.SLATE];
|
|
18438
|
-
getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T];
|
|
19413
|
+
getPlaybackEngine(): AnyPlayerPlaybackEngine | undefined;
|
|
19414
|
+
getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T] | undefined;
|
|
18439
19415
|
}
|
|
18440
19416
|
|
|
18441
19417
|
export declare interface PlayerLocalConfig extends PlayerInternalConfig {
|
|
@@ -18503,10 +19479,12 @@ export declare interface PlayerPlaybackChangeEventData extends Serializable {
|
|
|
18503
19479
|
playerPlayback: PlayerPlayback;
|
|
18504
19480
|
}
|
|
18505
19481
|
|
|
18506
|
-
declare interface PlayerPlaybackEngine {
|
|
19482
|
+
export declare interface PlayerPlaybackEngine<T extends MainMediaType = MainMediaType> {
|
|
19483
|
+
/** Main media type this engine plays, use it to narrow {@link AnyPlayerPlaybackEngine}. */
|
|
19484
|
+
readonly mainMediaType: T;
|
|
18507
19485
|
}
|
|
18508
19486
|
|
|
18509
|
-
declare type PlayerPlaybackEngineMapping = {
|
|
19487
|
+
export declare type PlayerPlaybackEngineMapping = {
|
|
18510
19488
|
[MainMediaType.HLS]: HlsPlayerPlaybackEngine;
|
|
18511
19489
|
[MainMediaType.MP4]: Mp4PlayerPlaybackEngine;
|
|
18512
19490
|
[MainMediaType.AUDIO_FILE]: AudioFilePlayerPlaybackEngine;
|
|
@@ -19658,6 +20636,31 @@ declare class SeekStepper {
|
|
|
19658
20636
|
reset(): void;
|
|
19659
20637
|
}
|
|
19660
20638
|
|
|
20639
|
+
export declare const SegmentationDomClasses: {
|
|
20640
|
+
mediaChromePlayheadToMarkerStart: string;
|
|
20641
|
+
mediaChromePlayheadToMarkerEnd: string;
|
|
20642
|
+
mediaChromeCreateMarker: string;
|
|
20643
|
+
mediaChromeDeleteMarker: string;
|
|
20644
|
+
mediaChromeNextMarker: string;
|
|
20645
|
+
mediaChromePreviousMarker: string;
|
|
20646
|
+
mediaChromeLoopOnMarker: string;
|
|
20647
|
+
mediaChromeSplitMarker: string;
|
|
20648
|
+
mediaChromeMarkIn: string;
|
|
20649
|
+
mediaChromeMarkOut: string;
|
|
20650
|
+
mediaChromeColorSelector: string;
|
|
20651
|
+
markLabel: string;
|
|
20652
|
+
markDisplay: string;
|
|
20653
|
+
markDisplaySizer: string;
|
|
20654
|
+
markDisplayValue: string;
|
|
20655
|
+
colorSelectorFlyout: string;
|
|
20656
|
+
colorSelectorGrid: string;
|
|
20657
|
+
colorSelectorOption: string;
|
|
20658
|
+
colorSelectorActive: string;
|
|
20659
|
+
colorSelectorLight: string;
|
|
20660
|
+
colorSelectorOpen: string;
|
|
20661
|
+
disabled: string;
|
|
20662
|
+
};
|
|
20663
|
+
|
|
19661
20664
|
/** What the playlist says about following this rendition from here. */
|
|
19662
20665
|
export declare interface SegmentedVttReadResult {
|
|
19663
20666
|
targetDuration: number | undefined;
|
|
@@ -19666,6 +20669,12 @@ export declare interface SegmentedVttReadResult {
|
|
|
19666
20669
|
updated: boolean;
|
|
19667
20670
|
}
|
|
19668
20671
|
|
|
20672
|
+
/** HLS segment location, byteRange is [start, end) as in EXT-X-BYTERANGE (hls.js Fragment.byteRange), empty for whole resource */
|
|
20673
|
+
declare interface SegmentLocation {
|
|
20674
|
+
url: string;
|
|
20675
|
+
byteRange?: [number, number] | [] | undefined;
|
|
20676
|
+
}
|
|
20677
|
+
|
|
19669
20678
|
export declare const selectChroming: (state: SessionState) => ChromingSession | undefined;
|
|
19670
20679
|
|
|
19671
20680
|
export declare const selectPlayer: (state: SessionState) => PlayerSession | undefined;
|
|
@@ -20027,22 +21036,31 @@ export declare const SidecarVideoDomClasses: {
|
|
|
20027
21036
|
*/
|
|
20028
21037
|
export declare interface SidecarVideoDomController extends SidecarDomController {
|
|
20029
21038
|
videoElement: HTMLVideoElement;
|
|
21039
|
+
/** Buffered time ranges, in video element time. */
|
|
20030
21040
|
bufferedTimeRanges: BufferedTimeRange[];
|
|
21041
|
+
/**
|
|
21042
|
+
* Video element time of sidecar time 0 - where the first video frame of attached source lands on video element timeline,
|
|
21043
|
+
* same as main media init segment time offset. Sidecar time is video element time minus time offset.
|
|
21044
|
+
* Resolved by {@link loadSource}, 0 until resolved.
|
|
21045
|
+
*/
|
|
21046
|
+
timeOffset: number;
|
|
21047
|
+
/** Duration of attached source, in sidecar time, see {@link timeOffset}. */
|
|
21048
|
+
duration: number;
|
|
20031
21049
|
/**
|
|
20032
21050
|
* Sidecar video element visibility. Hidden element keeps its layout box, so it's not painted but keeps its size
|
|
20033
21051
|
* (hls.js level capping relies on it) and becomes visible without re-layout.
|
|
20034
21052
|
*/
|
|
20035
21053
|
visible: boolean;
|
|
20036
21054
|
/**
|
|
20037
|
-
* Loads source into sidecar video element, completes when media data and metadata are loaded.
|
|
21055
|
+
* Loads source into sidecar video element and resolves its {@link timeOffset}, completes when media data and metadata are loaded.
|
|
20038
21056
|
*
|
|
20039
21057
|
* @param url Source url
|
|
20040
21058
|
* @param startTime Sidecar time loading should start from, so the first fetched data is the one that will be played. Defaults to 0.
|
|
20041
21059
|
*/
|
|
20042
21060
|
loadSource(url: string | undefined, startTime?: number): Observable<void>;
|
|
20043
21061
|
/**
|
|
20044
|
-
* Resolves source duration without loading media data, so no frame is decoded. Video element is left without source.
|
|
20045
|
-
* - MP4 - only metadata is loaded
|
|
21062
|
+
* Resolves source duration in sidecar time without loading media data, so no frame is decoded. Video element is left without source.
|
|
21063
|
+
* - MP4 - only metadata is loaded, and the first video frame time is read to resolve time offset
|
|
20046
21064
|
* - HLS - only playlists are fetched, duration is sum of media playlist segment durations
|
|
20047
21065
|
*
|
|
20048
21066
|
* @param url Source url
|
|
@@ -20106,6 +21124,9 @@ export declare interface SidecarVideoTrackControllerConfig extends SidecarTrackC
|
|
|
20106
21124
|
* If inactive, keeps warming up, so it can be activated without seeking
|
|
20107
21125
|
* - after time window, holds the frame at {@link SidecarTimeWindow.cutEndTime}
|
|
20108
21126
|
*
|
|
21127
|
+
* Sidecar time is mapped to video element time through {@link SidecarVideoDomController.timeOffset}, so sidecar time 0 is where its first video frame
|
|
21128
|
+
* lands on video element timeline, same as main media time 0 is where main media first video frame lands, see main media init segment time offset.
|
|
21129
|
+
*
|
|
20109
21130
|
* Sidecar video drifting from main media is corrected by adjusting its playback rate, or by seeking when drift is too large.
|
|
20110
21131
|
*
|
|
20111
21132
|
* Video element can't play backwards nor faster than {@link SEEK_STEP_PLAYBACK_DEFAULTS.maxNativePlaybackRate}. At such main media playback rates
|
|
@@ -20123,6 +21144,10 @@ export declare class SidecarVideoTrackControllerImpl extends BaseSidecarTrackCon
|
|
|
20123
21144
|
protected _seekStepper: SeekStepper;
|
|
20124
21145
|
constructor(trackState: MediaContainerTrackState, playerController: PlayerController, domController: SidecarVideoDomController, config?: Partial<SidecarVideoTrackControllerConfig>);
|
|
20125
21146
|
protected get videoElement(): HTMLVideoElement;
|
|
21147
|
+
/** Current sidecar time, video element time minus {@link SidecarVideoDomController.timeOffset}. */
|
|
21148
|
+
protected get currentTime(): number;
|
|
21149
|
+
/** Maps sidecar time to video element time. */
|
|
21150
|
+
protected toElementTime(time: number): number;
|
|
20126
21151
|
/** Whether video element can't play at main media playback rate, sidecar is paused and seeked in steps then. */
|
|
20127
21152
|
protected isSeekStepPlayback(): boolean;
|
|
20128
21153
|
/** Video element playback rate, video element is paused while main media plays at playback rate it can't play at. */
|
|
@@ -20220,10 +21245,11 @@ export declare interface SlatePlayerControllerConfig extends VirtualPlayerContro
|
|
|
20220
21245
|
defaultFrameRate: number | string;
|
|
20221
21246
|
}
|
|
20222
21247
|
|
|
20223
|
-
export declare interface SlatePlayerPlaybackEngine extends PlayerPlaybackEngine {
|
|
21248
|
+
export declare interface SlatePlayerPlaybackEngine extends PlayerPlaybackEngine<MainMediaType.SLATE> {
|
|
20224
21249
|
}
|
|
20225
21250
|
|
|
20226
|
-
export declare class SlatePlayerPlaybackEngineImpl extends BasePlayerPlaybackEngine implements SlatePlayerPlaybackEngine {
|
|
21251
|
+
export declare class SlatePlayerPlaybackEngineImpl extends BasePlayerPlaybackEngine<MainMediaType.SLATE> implements SlatePlayerPlaybackEngine {
|
|
21252
|
+
readonly mainMediaType = MainMediaType.SLATE;
|
|
20227
21253
|
constructor(playerController: PlayerController);
|
|
20228
21254
|
}
|
|
20229
21255
|
|
|
@@ -20554,7 +21580,7 @@ export declare interface TamsMediaMetadata {
|
|
|
20554
21580
|
/**
|
|
20555
21581
|
* How a TAMS flow is bridged to HLS, resolved from {@link TamsMainMediaLoadOptions}.
|
|
20556
21582
|
*/
|
|
20557
|
-
declare enum TamsPlaybackMode {
|
|
21583
|
+
export declare enum TamsPlaybackMode {
|
|
20558
21584
|
/** Closed range — media playlist with `EXT-X-ENDLIST`. */
|
|
20559
21585
|
VOD = "VOD",
|
|
20560
21586
|
/** Start-over live — fixed start growing towards the flow head (`EXT-X-PLAYLIST-TYPE:EVENT`, no endlist). */
|
|
@@ -21298,6 +22324,8 @@ declare class ThumbnailWrapper implements Destroyable {
|
|
|
21298
22324
|
private _placeholderImg;
|
|
21299
22325
|
private _placeholderAnimation;
|
|
21300
22326
|
private _placeholderRetired;
|
|
22327
|
+
private _visible;
|
|
22328
|
+
private _loadedUrl?;
|
|
21301
22329
|
private _style;
|
|
21302
22330
|
private _thumbnailHeight;
|
|
21303
22331
|
constructor(thumbnail: Thumbnail, x: number, placeholderUrl: string | undefined, style: ThumbnailTrackLaneStyle, thumbnailHeight: number);
|
|
@@ -24003,6 +25031,11 @@ export declare interface TimelineApi extends Destroyable {
|
|
|
24003
25031
|
* Track, track id, or array of tracks/track ids. A single value creates a PeakProcessorAudioLevelSource (sidecar audio) or ObservationTrackAudioLevelSource (observation track); an array creates an ObservationTrackAudioLevelSource with one ObservationTrack per channel.
|
|
24004
25032
|
*/
|
|
24005
25033
|
tracks?: Track['id'] | Track | Track['id'][] | Track[];
|
|
25034
|
+
/**
|
|
25035
|
+
* Type of the values held by observation {@link tracks}.
|
|
25036
|
+
* Defaults to `AudioObservationType.WAVEFORM`. Ignored for other sources.
|
|
25037
|
+
*/
|
|
25038
|
+
observationType?: AudioObservationType | undefined;
|
|
24006
25039
|
/**
|
|
24007
25040
|
* VU Meter configuration, optional
|
|
24008
25041
|
*/
|