@byomakase/omakase-player 1.3.0 → 1.3.1-RC2

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.
@@ -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
- constructor(player: OmakasePlayerApi, track: ObservationTrack | ObservationTrack[]);
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>;
@@ -7821,6 +7988,7 @@ declare const OMAKASE_VTT_CUE_DATA_KEY_MAPPING: {
7821
7988
  export declare class OmakaseAudioSelector extends OmakaseDropdownSelector {
7822
7989
  protected readonly dropdownIdPrefix = "omakase-audio-dropdown";
7823
7990
  protected readonly dropdownClass: string;
7991
+ protected readonly toggleIconClass: string;
7824
7992
  private get refreshEventTypes();
7825
7993
  refresh(): void;
7826
7994
  protected renderDropdownLists(dropdownId: string): string;
@@ -7861,6 +8029,11 @@ export declare class OmakaseAudioVisualization extends HTMLElement {
7861
8029
  private getScaledValue;
7862
8030
  }
7863
8031
 
8032
+ export declare const OmakaseAudioVisualizationAttributes: {
8033
+ FILL: string;
8034
+ STROKE: string;
8035
+ };
8036
+
7864
8037
  declare type OmakaseCaptionsState = 'on' | 'off' | 'disabled';
7865
8038
 
7866
8039
  export declare class OmakaseCaptionsToggle extends OmakaseCaptionsToggle_base {
@@ -8253,6 +8426,61 @@ declare const OmakaseCaptionsToggle_base: {
8253
8426
  get observedAttributes(): string[];
8254
8427
  } & typeof MediaChromeButton;
8255
8428
 
8429
+ export declare class OmakaseColorSelectorButton extends OmakaseSegmentationButton {
8430
+ static get observedAttributes(): string[];
8431
+ private _flyout;
8432
+ private _grid;
8433
+ private _isOpen;
8434
+ private _documentClickListener;
8435
+ protected _uiEventBreaker: ObserverBreaker;
8436
+ protected _trackEventBreaker: ObserverBreaker;
8437
+ private _newMarkerColor;
8438
+ protected get iconClass(): string;
8439
+ protected get tooltipText(): string;
8440
+ get scope(): OmakaseColorSelectorScope;
8441
+ set scope(value: OmakaseColorSelectorScope);
8442
+ get initialColor(): Color;
8443
+ set initialColor(value: Color | undefined);
8444
+ get palette(): Color[];
8445
+ set palette(value: Color[] | undefined);
8446
+ get flyoutDirection(): OmakaseColorSelectorFlyoutDirection;
8447
+ set flyoutDirection(direction: OmakaseColorSelectorFlyoutDirection | undefined);
8448
+ get selectedColor(): Color;
8449
+ set selectedColor(color: Color);
8450
+ get newMarkerColor(): Color | undefined;
8451
+ set newMarkerColor(color: Color | undefined);
8452
+ get track(): OmakaseTrackApi | undefined;
8453
+ set track(track: OmakaseTrackApi | undefined);
8454
+ get ui(): UiApi | undefined;
8455
+ set ui(ui: UiApi | undefined);
8456
+ connectedCallback(): void;
8457
+ disconnectedCallback(): void;
8458
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
8459
+ handleClick(event?: Event): void;
8460
+ protected buildContent(): void;
8461
+ protected activate(track: MarkerTrack): void;
8462
+ protected updateActiveState(): void;
8463
+ private setOpen;
8464
+ private renderGrid;
8465
+ private resolveColumns;
8466
+ private resolveSelectedColor;
8467
+ private resolveEffectiveColor;
8468
+ private applyColor;
8469
+ private applyNewMarkerColor;
8470
+ private refreshSelectedColor;
8471
+ }
8472
+
8473
+ export declare const OmakaseColorSelectorButtonAttributes: {
8474
+ SCOPE: string;
8475
+ INITIAL_COLOR: string;
8476
+ PALETTE: string;
8477
+ FLYOUT: string;
8478
+ };
8479
+
8480
+ export declare type OmakaseColorSelectorFlyoutDirection = 'left' | 'right' | 'up' | 'down';
8481
+
8482
+ export declare type OmakaseColorSelectorScope = 'track' | 'marker';
8483
+
8256
8484
  export declare class OmakaseControlBarGroup extends HTMLElement {
8257
8485
  }
8258
8486
 
@@ -8275,6 +8503,30 @@ export declare enum OmakaseControlBarVisibility {
8275
8503
  ALWAYS_ON = "ALWAYS_ON"
8276
8504
  }
8277
8505
 
8506
+ export declare class OmakaseCreateMarkerButton extends OmakaseSegmentationButton {
8507
+ private _onCreateMarker;
8508
+ protected get iconClass(): string;
8509
+ protected get tooltipText(): string;
8510
+ get onCreateMarker(): OmakaseCreateMarkerFn | undefined;
8511
+ set onCreateMarker(fn: OmakaseCreateMarkerFn | undefined);
8512
+ protected isCapabilityActive(track: MarkerTrack): boolean;
8513
+ protected activate(track: MarkerTrack): void;
8514
+ }
8515
+
8516
+ export declare type OmakaseCreateMarkerFn = (track: MarkerTrack, currentTime: number) => void;
8517
+
8518
+ export declare class OmakaseDeleteMarkerButton extends OmakaseSegmentationButton {
8519
+ private _onDeleteMarker;
8520
+ protected get iconClass(): string;
8521
+ protected get tooltipText(): string;
8522
+ get onDeleteMarker(): OmakaseDeleteMarkerFn | undefined;
8523
+ set onDeleteMarker(fn: OmakaseDeleteMarkerFn | undefined);
8524
+ protected isCapabilityActive(track: MarkerTrack): boolean;
8525
+ protected activate(track: MarkerTrack): void;
8526
+ }
8527
+
8528
+ export declare type OmakaseDeleteMarkerFn = (track: MarkerTrack, markers: Marker[]) => void;
8529
+
8278
8530
  export declare class OmakaseDetachToggle extends OmakaseDetachToggle_base {
8279
8531
  static get observedAttributes(): string[];
8280
8532
  private _omakasePlayer;
@@ -8705,6 +8957,12 @@ export declare class OmakaseDropdown extends HTMLElement {
8705
8957
 
8706
8958
  declare type OmakaseDropdownAlignment = 'left' | 'center' | 'right';
8707
8959
 
8960
+ export declare const OmakaseDropdownAttributes: {
8961
+ POSITION: string;
8962
+ ALIGNMENT: string;
8963
+ FLOATING: string;
8964
+ };
8965
+
8708
8966
  export declare class OmakaseDropdownList extends HTMLElement implements OmakaseDropdownListApi {
8709
8967
  private _title?;
8710
8968
  private _list?;
@@ -8764,6 +9022,15 @@ export declare interface OmakaseDropdownListApi {
8764
9022
  setOptions(options: OmakaseDropdownListItem[]): void;
8765
9023
  }
8766
9024
 
9025
+ export declare const OmakaseDropdownListAttributes: {
9026
+ WIDTH: string;
9027
+ MAX_WIDTH: string;
9028
+ TYPE: string;
9029
+ MULTISELECT: string;
9030
+ TITLE: string;
9031
+ DROPDOWN: string;
9032
+ };
9033
+
8767
9034
  /**
8768
9035
  * Single item in the dropdown list.
8769
9036
  */
@@ -8807,6 +9074,13 @@ export declare class OmakaseDropdownOption extends HTMLElement {
8807
9074
  connectedCallback(): void;
8808
9075
  }
8809
9076
 
9077
+ export declare const OmakaseDropdownOptionAttributes: {
9078
+ VALUE: string;
9079
+ TITLE: string;
9080
+ SELECTED: string;
9081
+ DISABLED: string;
9082
+ };
9083
+
8810
9084
  declare type OmakaseDropdownPosition = 'above' | 'below';
8811
9085
 
8812
9086
  declare abstract class OmakaseDropdownSelector extends OmakaseDropdownSelector_base {
@@ -8815,6 +9089,8 @@ declare abstract class OmakaseDropdownSelector extends OmakaseDropdownSelector_b
8815
9089
  private _dropdownLists;
8816
9090
  private _toggle;
8817
9091
  private _toggleContent;
9092
+ private _slottedToggleContent;
9093
+ private _defaultToggle;
8818
9094
  private _unavailable;
8819
9095
  protected _playerBreaker: ObserverBreaker;
8820
9096
  protected _connectionBreaker: ObserverBreaker;
@@ -8822,6 +9098,13 @@ declare abstract class OmakaseDropdownSelector extends OmakaseDropdownSelector_b
8822
9098
  protected abstract readonly dropdownIdPrefix: string;
8823
9099
  /** Class set on the rendered `omakase-dropdown`. */
8824
9100
  protected abstract readonly dropdownClass: string;
9101
+ /**
9102
+ * Class of the icon shown by the default toggle in the `icon` representation.
9103
+ */
9104
+ protected readonly toggleIconClass: string | undefined;
9105
+ /** Alignment of the options when the `option-alignment` attribute isn't set. */
9106
+ protected readonly defaultOptionAlignment: OmakaseDropdownAlignment;
9107
+ static get observedAttributes(): string[];
8825
9108
  /** Markup of the `omakase-dropdown-list`s, given the id of the dropdown they're in. */
8826
9109
  protected abstract renderDropdownLists(dropdownId: string): string;
8827
9110
  /**
@@ -8841,9 +9124,18 @@ declare abstract class OmakaseDropdownSelector extends OmakaseDropdownSelector_b
8841
9124
  get dropdownList(): OmakaseDropdownList | undefined;
8842
9125
  get dropdownLists(): OmakaseDropdownList[];
8843
9126
  get toggle(): OmakaseDropdownToggle | undefined;
8844
- /** The elements given in the `toggle` slot. */
9127
+ /** The elements shown in the toggle: those given in the `toggle` slot, else the default icon button, if shown. */
8845
9128
  get toggleContent(): HTMLElement[];
8846
9129
  get alignment(): OmakaseDropdownAlignment;
9130
+ /**
9131
+ * `icon` (the default for selectors that have an icon) shows the selector's icon in the toggle, `label` shows the
9132
+ * selected option's label. Ignored when content is given in the `toggle` slot.
9133
+ */
9134
+ get representation(): OmakaseDropdownSelectorRepresentation;
9135
+ set representation(representation: OmakaseDropdownSelectorRepresentation);
9136
+ /** Horizontal alignment of the options (and the list titles) inside the dropdown. */
9137
+ get optionAlignment(): OmakaseDropdownAlignment;
9138
+ set optionAlignment(optionAlignment: OmakaseDropdownAlignment);
8847
9139
  get caret(): boolean;
8848
9140
  set caret(caret: boolean);
8849
9141
  get toggleBackground(): boolean;
@@ -8865,6 +9157,12 @@ declare abstract class OmakaseDropdownSelector extends OmakaseDropdownSelector_b
8865
9157
  protected setDisabled(disabled: boolean): void;
8866
9158
  private updateDisabled;
8867
9159
  private render;
9160
+ /** What the toggle shows: the slotted content, else the default icon button, else nothing (the toggle then shows the label). */
9161
+ private getToggleContent;
9162
+ private getDefaultToggle;
9163
+ /** Switches the toggle between the default icon and the label when the representation changes after rendering. */
9164
+ private updateToggleContent;
9165
+ private updateOptionAlignment;
8868
9166
  /**
8869
9167
  * Anchors the bottom edge of a dropdown opening above to the toggle's top edge, and for `right` alignment its right
8870
9168
  * edge to the toggle's right edge (as a `right` offset, since the list can grow wider than its nominal width).
@@ -9247,22 +9545,47 @@ declare const OmakaseDropdownSelector_base: {
9247
9545
  prototype: HTMLElement;
9248
9546
  };
9249
9547
 
9250
- declare type OmakaseDropdownSelectorExpandDirection = 'left' | 'right';
9548
+ export declare const OmakaseDropdownSelectorAttributes: {
9549
+ DROPDOWN: string;
9550
+ ALIGNMENT: string;
9551
+ POSITION: string;
9552
+ CONTAINER_RIGHT: string;
9553
+ DROPDOWN_CLASS: string;
9554
+ TOGGLE_CLASS: string;
9555
+ FLOATING: string;
9556
+ CARET: string;
9557
+ TOGGLE_BACKGROUND: string;
9558
+ EXPAND_DIRECTION: string;
9559
+ REPRESENTATION: string;
9560
+ OPTION_ALIGNMENT: string;
9561
+ };
9562
+
9563
+ export declare type OmakaseDropdownSelectorExpandDirection = 'left' | 'right';
9564
+
9565
+ declare type OmakaseDropdownSelectorRepresentation = 'icon' | 'label';
9251
9566
 
9252
9567
  export declare class OmakaseDropdownToggle extends HTMLElement {
9253
9568
  static get observedAttributes(): string[];
9254
9569
  private _dropdown?;
9255
9570
  private _span?;
9571
+ private _titleListener?;
9256
9572
  get span(): HTMLSpanElement | undefined;
9257
9573
  setLabel(label: string | undefined): void;
9258
9574
  private updateTitle;
9259
9575
  get isDisabled(): boolean;
9260
9576
  set isDisabled(isDisabled: boolean);
9261
9577
  constructor();
9578
+ showLabel(): void;
9579
+ showContent(content: HTMLElement[]): void;
9262
9580
  connectedCallback(): void;
9263
9581
  private _bindDropdown;
9264
9582
  }
9265
9583
 
9584
+ export declare const OmakaseDropdownToggleAttributes: {
9585
+ DROPDOWN: string;
9586
+ DISABLED: string;
9587
+ };
9588
+
9266
9589
  export declare class OmakaseEndButton extends OmakaseEndButton_base {
9267
9590
  private _player;
9268
9591
  private _iconSpan;
@@ -10424,6 +10747,11 @@ export declare class OmakaseKeyframeButton extends OmakaseKeyframeButton_base {
10424
10747
  handleClick(): void;
10425
10748
  disconnectedCallback(): void;
10426
10749
  private extractKeyframe;
10750
+ /**
10751
+ * Compiles the callback attribute value the same way the browser compiles inline event handlers such as `onclick`:
10752
+ * the value is the body of a function that receives `keyframe` and is invoked with the button as `this`
10753
+ */
10754
+ private compileCallbackAttribute;
10427
10755
  private playAudio;
10428
10756
  private releaseAudio;
10429
10757
  private updateActiveState;
@@ -10801,6 +11129,7 @@ declare const OmakaseKeyframeButton_base: {
10801
11129
 
10802
11130
  export declare const OmakaseKeyframeButtonAttributes: {
10803
11131
  AUDIO_SRC: string;
11132
+ CALLBACK: string;
10804
11133
  INACTIVE: string;
10805
11134
  };
10806
11135
 
@@ -11223,6 +11552,74 @@ export declare const OmakaseLiveButtonAttributes: {
11223
11552
  DVR: string;
11224
11553
  };
11225
11554
 
11555
+ export declare class OmakaseLoopOnMarkerButton extends OmakaseSegmentationButton {
11556
+ static get observedAttributes(): string[];
11557
+ protected _watchBreaker: ObserverBreaker;
11558
+ protected get iconClass(): string;
11559
+ protected get tooltipText(): string;
11560
+ /**
11561
+ * Maximum distance, in seconds, played on either side of an active Moment Marker. Defaults to 5
11562
+ * when unset.
11563
+ */
11564
+ get displacement(): number;
11565
+ set displacement(value: number);
11566
+ protected isCapabilityActive(track: MarkerTrack): boolean;
11567
+ protected activate(track: MarkerTrack): void;
11568
+ disconnectedCallback(): void;
11569
+ }
11570
+
11571
+ export declare const OmakaseLoopOnMarkerButtonAttributes: {
11572
+ DISPLACEMENT: string;
11573
+ };
11574
+
11575
+ /**
11576
+ * Shared rendering for the Mark-In/Mark-Out capabilities' three representations.
11577
+ */
11578
+ export declare abstract class OmakaseMarkButton extends OmakaseSegmentationButton {
11579
+ static get observedAttributes(): string[];
11580
+ private _labelSpan;
11581
+ private _displaySpan;
11582
+ private _displaySizerSpan;
11583
+ private _displayValueSpan;
11584
+ private _localization;
11585
+ protected _playerBreaker: ObserverBreaker;
11586
+ /**
11587
+ * Default for {@link label} when the `label` attribute/property isn't set - the localized
11588
+ * string from {@link localization}, if wired, otherwise a hardcoded English fallback.
11589
+ */
11590
+ protected abstract get defaultLabel(): string;
11591
+ /**
11592
+ * Resolves the time to display (in seconds) for the given, currently-active marker, or
11593
+ * `undefined` to show the empty placeholder.
11594
+ */
11595
+ protected abstract resolveDisplayTime(marker: Marker): number | undefined;
11596
+ get representation(): OmakaseMarkButtonRepresentation;
11597
+ set representation(value: OmakaseMarkButtonRepresentation);
11598
+ /**
11599
+ * Localizable label shown in the `label-time` representation. Defaults to {@link defaultLabel}.
11600
+ */
11601
+ get label(): string;
11602
+ set label(value: string | undefined);
11603
+ get localization(): LocalizationApi | undefined;
11604
+ set localization(localization: LocalizationApi | undefined);
11605
+ get player(): PlayerApi | PlayerDetachedApi | undefined;
11606
+ set player(player: PlayerApi | PlayerDetachedApi | undefined);
11607
+ disconnectedCallback(): void;
11608
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
11609
+ protected buildContent(): void;
11610
+ protected get disabledStateElement(): HTMLElement | undefined;
11611
+ protected updateActiveState(): void;
11612
+ private appendDisplay;
11613
+ private updateDisplay;
11614
+ }
11615
+
11616
+ export declare const OmakaseMarkButtonAttributes: {
11617
+ REPRESENTATION: string;
11618
+ LABEL: string;
11619
+ };
11620
+
11621
+ export declare type OmakaseMarkButtonRepresentation = 'icon' | 'icon-time' | 'label-time';
11622
+
11226
11623
  export declare class OmakaseMarkerBar extends OmakaseMarkerBars_base {
11227
11624
  protected readonly _onEvent$: Subject<ChromingMarkerBarElementEvent>;
11228
11625
  private _markerBars;
@@ -11246,6 +11643,12 @@ export declare class OmakaseMarkerBar extends OmakaseMarkerBars_base {
11246
11643
  set isOmakase(isOmakase: boolean);
11247
11644
  setLiveModel(model: UiLiveModel): void;
11248
11645
  addMarkerBar(): OmakaseMarkerTrack;
11646
+ /**
11647
+ * Registers the `<omakase-marker-bar>` children that weren't added with {@link addMarkerBar}, e.g. the ones declared in HTML
11648
+ * @returns The registered marker bars
11649
+ */
11650
+ adoptMarkerBars(): OmakaseMarkerTrack[];
11651
+ private registerMarkerBar;
11249
11652
  deleteMarkerBar(barId: string): void;
11250
11653
  addMarker(trackId: string, marker: MarkerState): void;
11251
11654
  updateMarker(trackId: string, marker: MarkerState): void;
@@ -11655,6 +12058,7 @@ export declare class OmakaseMarkerTrack extends HTMLElement implements ChromingM
11655
12058
  set config(config: Partial<ChromingMarkerBarConfig>);
11656
12059
  get markerTracks(): MarkerTrackState[] | undefined;
11657
12060
  set markerTracks(markerTracks: MarkerTrackState[]);
12061
+ get markerTrackId(): string | undefined;
11658
12062
  get mediaDuration(): number;
11659
12063
  set mediaDuration(duration: number);
11660
12064
  set containerSize(containerSize: number | undefined);
@@ -11701,6 +12105,41 @@ export declare class OmakaseMarkerTrack extends HTMLElement implements ChromingM
11701
12105
  private getMarkerStateOrFail;
11702
12106
  }
11703
12107
 
12108
+ export declare const OmakaseMarkerTrackAttributes: {
12109
+ OMAKASE: string;
12110
+ MEDIA_DURATION: string;
12111
+ MARKER_ID: string;
12112
+ MARKER_TRACK_ID: string;
12113
+ };
12114
+
12115
+ export declare class OmakaseMarkInButton extends OmakaseMarkButton {
12116
+ private _onMarkIn;
12117
+ protected get iconClass(): string;
12118
+ protected get tooltipText(): string;
12119
+ protected get defaultLabel(): string;
12120
+ get onMarkIn(): OmakaseMarkInFn | undefined;
12121
+ set onMarkIn(fn: OmakaseMarkInFn | undefined);
12122
+ protected resolveDisplayTime(marker: Marker): number | undefined;
12123
+ protected isCapabilityActive(track: MarkerTrack): boolean;
12124
+ protected activate(track: MarkerTrack): void;
12125
+ }
12126
+
12127
+ export declare type OmakaseMarkInFn = (track: MarkerTrack, currentTime: number, marker: Marker | undefined) => void;
12128
+
12129
+ export declare class OmakaseMarkOutButton extends OmakaseMarkButton {
12130
+ private _onMarkOut;
12131
+ protected get iconClass(): string;
12132
+ protected get tooltipText(): string;
12133
+ protected get defaultLabel(): string;
12134
+ get onMarkOut(): OmakaseMarkOutFn | undefined;
12135
+ set onMarkOut(fn: OmakaseMarkOutFn | undefined);
12136
+ protected resolveDisplayTime(marker: Marker): number | undefined;
12137
+ protected isCapabilityActive(track: MarkerTrack): boolean;
12138
+ protected activate(track: MarkerTrack): void;
12139
+ }
12140
+
12141
+ export declare type OmakaseMarkOutFn = (track: MarkerTrack, currentTime: number, marker: Marker | undefined) => void;
12142
+
11704
12143
  export declare class OmakaseMenu extends OmakaseDropdownSelector {
11705
12144
  protected readonly dropdownIdPrefix = "omakase-menu-dropdown";
11706
12145
  protected readonly dropdownClass: string;
@@ -11729,6 +12168,22 @@ export declare class OmakaseMenu extends OmakaseDropdownSelector {
11729
12168
  private renderOptions;
11730
12169
  }
11731
12170
 
12171
+ export declare const OmakaseMenuAttributes: {
12172
+ MENU_TITLE: string;
12173
+ DROPDOWN: string;
12174
+ ALIGNMENT: string;
12175
+ POSITION: string;
12176
+ CONTAINER_RIGHT: string;
12177
+ DROPDOWN_CLASS: string;
12178
+ TOGGLE_CLASS: string;
12179
+ FLOATING: string;
12180
+ CARET: string;
12181
+ TOGGLE_BACKGROUND: string;
12182
+ EXPAND_DIRECTION: string;
12183
+ REPRESENTATION: string;
12184
+ OPTION_ALIGNMENT: string;
12185
+ };
12186
+
11732
12187
  export declare interface OmakaseMenuOption {
11733
12188
  /** Text shown in the menu, and passed to {@link OmakaseMenu.onSelect} when the option is selected. */
11734
12189
  label: string;
@@ -12140,6 +12595,17 @@ declare const OmakaseMuteButton_base: {
12140
12595
  get observedAttributes(): string[];
12141
12596
  } & typeof MediaChromeButton;
12142
12597
 
12598
+ export declare const OmakaseMuteButtonAttributes: {
12599
+ VOLUME_FLYOUT: string;
12600
+ };
12601
+
12602
+ export declare class OmakaseNextMarkerButton extends OmakaseSegmentationButton {
12603
+ protected get iconClass(): string;
12604
+ protected get tooltipText(): string;
12605
+ protected isCapabilityActive(track: MarkerTrack): boolean;
12606
+ protected activate(track: MarkerTrack): void;
12607
+ }
12608
+
12143
12609
  export declare class OmakasePlayAndRewindButton extends OmakasePlayAndRewindButton_base {
12144
12610
  static get observedAttributes(): string[];
12145
12611
  private _player;
@@ -12529,9 +12995,15 @@ declare const OmakasePlayAndRewindButton_base: {
12529
12995
  get observedAttributes(): string[];
12530
12996
  } & typeof MediaChromeButton;
12531
12997
 
12998
+ export declare const OmakasePlayAndRewindButtonAttributes: {
12999
+ DURATION: string;
13000
+ CUSTOM_DURATION: string;
13001
+ };
13002
+
12532
13003
  export declare class OmakasePlaybackRateSelector extends OmakaseDropdownSelector {
12533
13004
  protected readonly dropdownIdPrefix = "omakase-playback-rate-dropdown";
12534
13005
  protected readonly dropdownClass: string;
13006
+ protected readonly defaultOptionAlignment = "center";
12535
13007
  private _rates;
12536
13008
  static get observedAttributes(): string[];
12537
13009
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
@@ -12550,6 +13022,22 @@ export declare class OmakasePlaybackRateSelector extends OmakaseDropdownSelector
12550
13022
  protected onOptionSelected(option: OmakaseDropdownListItem, player: PlayerApi | PlayerDetachedApi): void;
12551
13023
  }
12552
13024
 
13025
+ export declare const OmakasePlaybackRateSelectorAttributes: {
13026
+ RATES: string;
13027
+ DROPDOWN: string;
13028
+ ALIGNMENT: string;
13029
+ POSITION: string;
13030
+ CONTAINER_RIGHT: string;
13031
+ DROPDOWN_CLASS: string;
13032
+ TOGGLE_CLASS: string;
13033
+ FLOATING: string;
13034
+ CARET: string;
13035
+ TOGGLE_BACKGROUND: string;
13036
+ EXPAND_DIRECTION: string;
13037
+ REPRESENTATION: string;
13038
+ OPTION_ALIGNMENT: string;
13039
+ };
13040
+
12553
13041
  export declare class OmakasePlayButton extends OmakasePlayButton_base {
12554
13042
  private _player;
12555
13043
  protected _playerBreaker: ObserverBreaker;
@@ -13117,6 +13605,20 @@ export declare interface OmakasePlayerDetachedConfigApi {
13117
13605
  localization?: Localizations | undefined;
13118
13606
  }
13119
13607
 
13608
+ export declare class OmakasePlayheadToMarkerEndButton extends OmakaseSegmentationButton {
13609
+ protected get iconClass(): string;
13610
+ protected get tooltipText(): string;
13611
+ protected isCapabilityActive(track: MarkerTrack): boolean;
13612
+ protected activate(track: MarkerTrack): void;
13613
+ }
13614
+
13615
+ export declare class OmakasePlayheadToMarkerStartButton extends OmakaseSegmentationButton {
13616
+ protected get iconClass(): string;
13617
+ protected get tooltipText(): string;
13618
+ protected isCapabilityActive(track: MarkerTrack): boolean;
13619
+ protected activate(track: MarkerTrack): void;
13620
+ }
13621
+
13120
13622
  export declare class OmakasePreviewThumbnail extends OmakasePreviewThumbnail_base {
13121
13623
  private _timeRange?;
13122
13624
  private _thumbnailTrack?;
@@ -13504,6 +14006,13 @@ declare const OmakasePreviewThumbnail_base: {
13504
14006
  prototype: HTMLElement;
13505
14007
  };
13506
14008
 
14009
+ export declare class OmakasePreviousMarkerButton extends OmakaseSegmentationButton {
14010
+ protected get iconClass(): string;
14011
+ protected get tooltipText(): string;
14012
+ protected isCapabilityActive(track: MarkerTrack): boolean;
14013
+ protected activate(track: MarkerTrack): void;
14014
+ }
14015
+
13507
14016
  export declare enum OmakaseProgressBarPosition {
13508
14017
  OVER_VIDEO = "OVER_VIDEO",
13509
14018
  UNDER_VIDEO = "UNDER_VIDEO"
@@ -13898,6 +14407,11 @@ declare const OmakaseRewindAndPlayButton_base: {
13898
14407
  get observedAttributes(): string[];
13899
14408
  } & typeof MediaChromeButton;
13900
14409
 
14410
+ export declare const OmakaseRewindAndPlayButtonAttributes: {
14411
+ DURATION: string;
14412
+ CUSTOM_DURATION: string;
14413
+ };
14414
+
13901
14415
  export declare class OmakaseSafeZoneToggle extends OmakaseSafeZoneToggle_base {
13902
14416
  static get observedAttributes(): string[];
13903
14417
  private readonly _idPrefix;
@@ -13920,6 +14434,7 @@ export declare class OmakaseSafeZoneToggle extends OmakaseSafeZoneToggle_base {
13920
14434
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
13921
14435
  handleClick(): void;
13922
14436
  disconnectedCallback(): void;
14437
+ private configureFromSafeZoneAttribute;
13923
14438
  private toSafeZoneCreate;
13924
14439
  private addSafeZones;
13925
14440
  private removeSafeZones;
@@ -14301,6 +14816,7 @@ declare const OmakaseSafeZoneToggle_base: {
14301
14816
 
14302
14817
  export declare const OmakaseSafeZoneToggleAttributes: {
14303
14818
  SAFE_ZONES_VISIBLE: string;
14819
+ SAFE_ZONE: string;
14304
14820
  INACTIVE: string;
14305
14821
  };
14306
14822
 
@@ -14315,108 +14831,579 @@ export declare interface OmakaseSafeZoneToggleConfig {
14315
14831
  */
14316
14832
  export declare type OmakaseSafeZoneToggleZone = number[] | VideoSafeZoneCreate;
14317
14833
 
14318
- export declare class OmakaseTextSelector extends OmakaseDropdownSelector {
14319
- protected readonly dropdownIdPrefix = "omakase-text-dropdown";
14320
- protected readonly dropdownClass: string;
14834
+ /**
14835
+ * Shared behavior for segmentation capabilities associated with a {@link MarkerTrack}.
14836
+ */
14837
+ export declare abstract class OmakaseSegmentationButton extends OmakaseSegmentationButton_base {
14321
14838
  static get observedAttributes(): string[];
14322
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
14323
- get offOption(): boolean;
14324
- set offOption(offOption: boolean);
14325
- private get refreshEventTypes();
14326
- refresh(): void;
14327
- protected renderDropdownLists(dropdownId: string): string;
14328
- protected subscribeToPlayer(player: PlayerApi | PlayerDetachedApi): void;
14329
- protected onOptionSelected(option: OmakaseDropdownListItem, player: PlayerApi | PlayerDetachedApi): void;
14330
- private getOptions;
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[];
14839
+ private _player;
14840
+ private _track;
14841
+ private _ui;
14842
+ protected _iconSpan: HTMLSpanElement | undefined;
14843
+ protected _tooltip: HTMLElement | undefined;
14844
+ protected _wireBreaker: ObserverBreaker;
14845
+ protected _destroyBreaker: ObserverBreaker;
14846
+ protected abstract get iconClass(): string;
14847
+ protected abstract get tooltipText(): string;
14385
14848
  /**
14386
- * Specifies control bar position
14849
+ * Whether the capability is currently active for the given, already-resolved marker track.
14850
+ * Only called when a marker track resolves and {@link enabled} is `true`. Defaults to `true`,
14387
14851
  */
14388
- progressBarPosition: OmakaseProgressBarPosition;
14852
+ protected isCapabilityActive(track: MarkerTrack): boolean;
14389
14853
  /**
14390
- * Specifies if the floating VU meter is displayed
14854
+ * Invoked on click (or keyboard activation) while the capability is active, with its resolved
14855
+ * marker track.
14391
14856
  */
14392
- isFloatingVuMeterVisible: boolean;
14857
+ protected abstract activate(track: MarkerTrack): void;
14858
+ get player(): PlayerApi | PlayerDetachedApi | undefined;
14859
+ set player(player: PlayerApi | PlayerDetachedApi | undefined);
14860
+ get track(): OmakaseTrackApi | undefined;
14861
+ set track(track: OmakaseTrackApi | undefined);
14862
+ get ui(): UiApi | undefined;
14863
+ set ui(ui: UiApi | undefined);
14864
+ get markerTrackId(): string | undefined;
14865
+ set markerTrackId(value: string | undefined);
14866
+ connectedCallback(): void;
14867
+ protected buildContent(): void;
14868
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
14869
+ handleClick(): void;
14870
+ disconnectedCallback(): void;
14871
+ private wire;
14872
+ protected resolveMarkerTrack(): MarkerTrack | undefined;
14393
14873
  /**
14394
- * Shared configuration for control bar and floating VU meters
14874
+ * Finds every marker on `track` whose `focused` {@link UiElementProps} is `true` (see
14875
+ * `UiApi.updateElement`). Available to subclasses whose activity/behavior depends on which
14876
+ * marker(s) are currently active/selected.
14395
14877
  */
14396
- vuMeterConfig: Partial<ChromingVuMeterConfig>;
14878
+ protected resolveActiveMarkers(track: MarkerTrack): Marker[];
14397
14879
  /**
14398
- * Override values for the floating VU meter configuration
14880
+ * Finds the first marker on `track` whose `focused` {@link UiElementProps} is `true`, if any.
14399
14881
  */
14400
- floatingVuMeterConfig?: Partial<ChromingVuMeterConfig> | undefined;
14882
+ protected resolveActiveMarker(track: MarkerTrack): Marker | undefined;
14883
+ protected updateActiveState(): void;
14401
14884
  /**
14402
- * Override values for the control bar VU meter configuration
14885
+ * Element whose {@link SegmentationDomClasses.disabled} class reflects whether the capability
14886
+ * is currently active. Defaults to the icon span; subclasses with a different visual (e.g. a
14887
+ * text label instead of an icon) can override this.
14403
14888
  */
14404
- controlBarVuMeterConfig?: Partial<ChromingVuMeterConfig> | undefined;
14889
+ protected get disabledStateElement(): HTMLElement | undefined;
14405
14890
  }
14406
14891
 
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",
14892
+ declare const OmakaseSegmentationButton_base: {
14893
+ new (...args: any[]): {
14894
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
14895
+ connectedCallback(): void;
14896
+ get enabled(): boolean;
14897
+ set enabled(enabled: boolean);
14898
+ get shortcutEnabled(): boolean;
14899
+ set shortcutEnabled(enabled: boolean);
14900
+ get shortcut(): string | undefined;
14901
+ set shortcut(shortcut: string | undefined);
14902
+ get visible(): boolean;
14903
+ set visible(visible: boolean);
14904
+ setEnabled(enabled: boolean): void;
14905
+ setShortcutEnabled(enabled: boolean): void;
14906
+ setShortcut(shortcut: string | undefined): void;
14907
+ setVisible(visible: boolean): void;
14908
+ accessKey: string;
14909
+ readonly accessKeyLabel: string;
14910
+ autocapitalize: string;
14911
+ autocorrect: boolean;
14912
+ dir: string;
14913
+ draggable: boolean;
14914
+ hidden: boolean;
14915
+ inert: boolean;
14916
+ innerText: string;
14917
+ lang: string;
14918
+ readonly offsetHeight: number;
14919
+ readonly offsetLeft: number;
14920
+ readonly offsetParent: Element | null;
14921
+ readonly offsetTop: number;
14922
+ readonly offsetWidth: number;
14923
+ outerText: string;
14924
+ popover: string | null;
14925
+ spellcheck: boolean;
14926
+ title: string;
14927
+ translate: boolean;
14928
+ writingSuggestions: string;
14929
+ attachInternals(): ElementInternals;
14930
+ click(): void;
14931
+ hidePopover(): void;
14932
+ showPopover(): void;
14933
+ togglePopover(options?: boolean): boolean;
14934
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
14935
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
14936
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
14937
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
14938
+ readonly attributes: NamedNodeMap;
14939
+ get classList(): DOMTokenList;
14940
+ set classList(value: string);
14941
+ className: string;
14942
+ readonly clientHeight: number;
14943
+ readonly clientLeft: number;
14944
+ readonly clientTop: number;
14945
+ readonly clientWidth: number;
14946
+ readonly currentCSSZoom: number;
14947
+ id: string;
14948
+ innerHTML: string;
14949
+ readonly localName: string;
14950
+ readonly namespaceURI: string | null;
14951
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
14952
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
14953
+ outerHTML: string;
14954
+ readonly ownerDocument: Document;
14955
+ get part(): DOMTokenList;
14956
+ set part(value: string);
14957
+ readonly prefix: string | null;
14958
+ readonly scrollHeight: number;
14959
+ scrollLeft: number;
14960
+ scrollTop: number;
14961
+ readonly scrollWidth: number;
14962
+ readonly shadowRoot: ShadowRoot | null;
14963
+ slot: string;
14964
+ readonly tagName: string;
14965
+ attachShadow(init: ShadowRootInit): ShadowRoot;
14966
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
14967
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
14968
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
14969
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
14970
+ closest<E extends Element = Element>(selectors: string): E | null;
14971
+ computedStyleMap(): StylePropertyMapReadOnly;
14972
+ getAttribute(qualifiedName: string): string | null;
14973
+ getAttributeNS(namespace: string | null, localName: string): string | null;
14974
+ getAttributeNames(): string[];
14975
+ getAttributeNode(qualifiedName: string): Attr | null;
14976
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
14977
+ getBoundingClientRect(): DOMRect;
14978
+ getClientRects(): DOMRectList;
14979
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
14980
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
14981
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
14982
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
14983
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
14984
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
14985
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
14986
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
14987
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
14988
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
14989
+ getHTML(options?: GetHTMLOptions): string;
14990
+ hasAttribute(qualifiedName: string): boolean;
14991
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
14992
+ hasAttributes(): boolean;
14993
+ hasPointerCapture(pointerId: number): boolean;
14994
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
14995
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
14996
+ insertAdjacentText(where: InsertPosition, data: string): void;
14997
+ matches(selectors: string): boolean;
14998
+ releasePointerCapture(pointerId: number): void;
14999
+ removeAttribute(qualifiedName: string): void;
15000
+ removeAttributeNS(namespace: string | null, localName: string): void;
15001
+ removeAttributeNode(attr: Attr): Attr;
15002
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
15003
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
15004
+ scroll(options?: ScrollToOptions): void;
15005
+ scroll(x: number, y: number): void;
15006
+ scrollBy(options?: ScrollToOptions): void;
15007
+ scrollBy(x: number, y: number): void;
15008
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
15009
+ scrollTo(options?: ScrollToOptions): void;
15010
+ scrollTo(x: number, y: number): void;
15011
+ setAttribute(qualifiedName: string, value: string): void;
15012
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
15013
+ setAttributeNode(attr: Attr): Attr | null;
15014
+ setAttributeNodeNS(attr: Attr): Attr | null;
15015
+ setHTMLUnsafe(html: string): void;
15016
+ setPointerCapture(pointerId: number): void;
15017
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
15018
+ webkitMatchesSelector(selectors: string): boolean;
15019
+ get textContent(): string;
15020
+ set textContent(value: string | null);
15021
+ readonly baseURI: string;
15022
+ readonly childNodes: NodeListOf<ChildNode>;
15023
+ readonly firstChild: ChildNode | null;
15024
+ readonly isConnected: boolean;
15025
+ readonly lastChild: ChildNode | null;
15026
+ readonly nextSibling: ChildNode | null;
15027
+ readonly nodeName: string;
15028
+ readonly nodeType: number;
15029
+ nodeValue: string | null;
15030
+ readonly parentElement: HTMLElement | null;
15031
+ readonly parentNode: ParentNode | null;
15032
+ readonly previousSibling: ChildNode | null;
15033
+ appendChild<T extends Node>(node: T): T;
15034
+ cloneNode(subtree?: boolean): Node;
15035
+ compareDocumentPosition(other: Node): number;
15036
+ contains(other: Node | null): boolean;
15037
+ getRootNode(options?: GetRootNodeOptions): Node;
15038
+ hasChildNodes(): boolean;
15039
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
15040
+ isDefaultNamespace(namespace: string | null): boolean;
15041
+ isEqualNode(otherNode: Node | null): boolean;
15042
+ isSameNode(otherNode: Node | null): boolean;
15043
+ lookupNamespaceURI(prefix: string | null): string | null;
15044
+ lookupPrefix(namespace: string | null): string | null;
15045
+ normalize(): void;
15046
+ removeChild<T extends Node>(child: T): T;
15047
+ replaceChild<T extends Node>(node: Node, child: T): T;
15048
+ readonly ELEMENT_NODE: 1;
15049
+ readonly ATTRIBUTE_NODE: 2;
15050
+ readonly TEXT_NODE: 3;
15051
+ readonly CDATA_SECTION_NODE: 4;
15052
+ readonly ENTITY_REFERENCE_NODE: 5;
15053
+ readonly ENTITY_NODE: 6;
15054
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
15055
+ readonly COMMENT_NODE: 8;
15056
+ readonly DOCUMENT_NODE: 9;
15057
+ readonly DOCUMENT_TYPE_NODE: 10;
15058
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
15059
+ readonly NOTATION_NODE: 12;
15060
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
15061
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
15062
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
15063
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
15064
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
15065
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
15066
+ dispatchEvent(event: Event): boolean;
15067
+ ariaActiveDescendantElement: Element | null;
15068
+ ariaAtomic: string | null;
15069
+ ariaAutoComplete: string | null;
15070
+ ariaBrailleLabel: string | null;
15071
+ ariaBrailleRoleDescription: string | null;
15072
+ ariaBusy: string | null;
15073
+ ariaChecked: string | null;
15074
+ ariaColCount: string | null;
15075
+ ariaColIndex: string | null;
15076
+ ariaColIndexText: string | null;
15077
+ ariaColSpan: string | null;
15078
+ ariaControlsElements: ReadonlyArray<Element> | null;
15079
+ ariaCurrent: string | null;
15080
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
15081
+ ariaDescription: string | null;
15082
+ ariaDetailsElements: ReadonlyArray<Element> | null;
15083
+ ariaDisabled: string | null;
15084
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
15085
+ ariaExpanded: string | null;
15086
+ ariaFlowToElements: ReadonlyArray<Element> | null;
15087
+ ariaHasPopup: string | null;
15088
+ ariaHidden: string | null;
15089
+ ariaInvalid: string | null;
15090
+ ariaKeyShortcuts: string | null;
15091
+ ariaLabel: string | null;
15092
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
15093
+ ariaLevel: string | null;
15094
+ ariaLive: string | null;
15095
+ ariaModal: string | null;
15096
+ ariaMultiLine: string | null;
15097
+ ariaMultiSelectable: string | null;
15098
+ ariaOrientation: string | null;
15099
+ ariaOwnsElements: ReadonlyArray<Element> | null;
15100
+ ariaPlaceholder: string | null;
15101
+ ariaPosInSet: string | null;
15102
+ ariaPressed: string | null;
15103
+ ariaReadOnly: string | null;
15104
+ ariaRelevant: string | null;
15105
+ ariaRequired: string | null;
15106
+ ariaRoleDescription: string | null;
15107
+ ariaRowCount: string | null;
15108
+ ariaRowIndex: string | null;
15109
+ ariaRowIndexText: string | null;
15110
+ ariaRowSpan: string | null;
15111
+ ariaSelected: string | null;
15112
+ ariaSetSize: string | null;
15113
+ ariaSort: string | null;
15114
+ ariaValueMax: string | null;
15115
+ ariaValueMin: string | null;
15116
+ ariaValueNow: string | null;
15117
+ ariaValueText: string | null;
15118
+ role: string | null;
15119
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
15120
+ getAnimations(options?: GetAnimationsOptions): Animation[];
15121
+ after(...nodes: (Node | string)[]): void;
15122
+ before(...nodes: (Node | string)[]): void;
15123
+ remove(): void;
15124
+ replaceWith(...nodes: (Node | string)[]): void;
15125
+ readonly nextElementSibling: Element | null;
15126
+ readonly previousElementSibling: Element | null;
15127
+ readonly childElementCount: number;
15128
+ readonly children: HTMLCollection;
15129
+ readonly firstElementChild: Element | null;
15130
+ readonly lastElementChild: Element | null;
15131
+ append(...nodes: (Node | string)[]): void;
15132
+ prepend(...nodes: (Node | string)[]): void;
15133
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
15134
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
15135
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
15136
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
15137
+ querySelector<E extends Element = Element>(selectors: string): E | null;
15138
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
15139
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
15140
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
15141
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
15142
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
15143
+ replaceChildren(...nodes: (Node | string)[]): void;
15144
+ readonly assignedSlot: HTMLSlotElement | null;
15145
+ readonly attributeStyleMap: StylePropertyMap;
15146
+ get style(): CSSStyleDeclaration;
15147
+ set style(cssText: string);
15148
+ contentEditable: string;
15149
+ enterKeyHint: string;
15150
+ inputMode: string;
15151
+ readonly isContentEditable: boolean;
15152
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
15153
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
15154
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
15155
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
15156
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
15157
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15158
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
15159
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15160
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
15161
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
15162
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15163
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15164
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15165
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15166
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15167
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15168
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15169
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15170
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15171
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
15172
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15173
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
15174
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15175
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15176
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15177
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15178
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15179
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15180
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15181
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
15182
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15183
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15184
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15185
+ onerror: OnErrorEventHandler;
15186
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
15187
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
15188
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15189
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15190
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15191
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
15192
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
15193
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
15194
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15195
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15196
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15197
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15198
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15199
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15200
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15201
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15202
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15203
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15204
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15205
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
15206
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
15207
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15208
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15209
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15210
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15211
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15212
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15213
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15214
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15215
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15216
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15217
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15218
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
15219
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
15220
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15221
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15222
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
15223
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15224
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15225
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
15226
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15227
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15228
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15229
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15230
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15231
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15232
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15233
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
15234
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15235
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15236
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
15237
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
15238
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
15239
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
15240
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
15241
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
15242
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
15243
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
15244
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
15245
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15246
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15247
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15248
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15249
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15250
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
15251
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
15252
+ autofocus: boolean;
15253
+ readonly dataset: DOMStringMap;
15254
+ nonce?: string;
15255
+ tabIndex: number;
15256
+ blur(): void;
15257
+ focus(options?: FocusOptions): void;
15258
+ };
15259
+ get observedAttributes(): string[];
15260
+ } & typeof MediaChromeButton;
15261
+
15262
+ export declare const OmakaseSegmentationButtonAttributes: {
15263
+ MARKER_TRACK_ID: string;
15264
+ INACTIVE: string;
15265
+ };
15266
+
15267
+ export declare class OmakaseSplitMarkerButton extends OmakaseSegmentationButton {
15268
+ protected _playerBreaker: ObserverBreaker;
15269
+ protected get iconClass(): string;
15270
+ protected get tooltipText(): string;
15271
+ /**
15272
+ * Color assigned to the right-most marker resulting from a split. Defaults to `#EE7A76` when
15273
+ * unset.
15274
+ */
15275
+ get splitColor(): string;
15276
+ set splitColor(value: string | undefined);
15277
+ get player(): PlayerApi | PlayerDetachedApi | undefined;
15278
+ set player(player: PlayerApi | PlayerDetachedApi | undefined);
15279
+ protected isCapabilityActive(track: MarkerTrack): boolean;
15280
+ protected activate(track: MarkerTrack): void;
15281
+ disconnectedCallback(): void;
15282
+ }
15283
+
15284
+ export declare const OmakaseSplitMarkerButtonAttributes: {
15285
+ SPLIT_COLOR: string;
15286
+ };
15287
+
15288
+ export declare class OmakaseTextSelector extends OmakaseDropdownSelector {
15289
+ protected readonly dropdownIdPrefix = "omakase-text-dropdown";
15290
+ protected readonly dropdownClass: string;
15291
+ protected readonly toggleIconClass: string;
15292
+ static get observedAttributes(): string[];
15293
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
15294
+ get offOption(): boolean;
15295
+ set offOption(offOption: boolean);
15296
+ private get refreshEventTypes();
15297
+ refresh(): void;
15298
+ protected renderDropdownLists(dropdownId: string): string;
15299
+ protected subscribeToPlayer(player: PlayerApi | PlayerDetachedApi): void;
15300
+ protected onOptionSelected(option: OmakaseDropdownListItem, player: PlayerApi | PlayerDetachedApi): void;
15301
+ private getOptions;
15302
+ private getTracks;
15303
+ private getPlayerTracks;
15304
+ private getActiveTrackId;
15305
+ private getShownTrackId;
15306
+ }
15307
+
15308
+ export declare const OmakaseTextSelectorAttributes: {
15309
+ OFF_OPTION: string;
15310
+ DROPDOWN: string;
15311
+ ALIGNMENT: string;
15312
+ POSITION: string;
15313
+ CONTAINER_RIGHT: string;
15314
+ DROPDOWN_CLASS: string;
15315
+ TOGGLE_CLASS: string;
15316
+ FLOATING: string;
15317
+ CARET: string;
15318
+ TOGGLE_BACKGROUND: string;
15319
+ EXPAND_DIRECTION: string;
15320
+ REPRESENTATION: string;
15321
+ OPTION_ALIGNMENT: string;
15322
+ };
15323
+
15324
+ export declare enum OmakaseThemeActionIcon {
15325
+ HELP_MENU = "HELP_MENU",
15326
+ FULLSCREEN_TOGGLE = "FULLSCREEN_TOGGLE",
15327
+ AUDIO_TOGGLE = "AUDIO_TOGGLE",
15328
+ VOLUME = "VOLUME",
15329
+ CONTROL_BAR_TOGGLE = "CONTROL_BAR_TOGGLE"
15330
+ }
15331
+
15332
+ export declare interface OmakaseThemeConfig extends OmakaseThemeConfigUpdateableAttrs {
15333
+ /**
15334
+ * Specifies the list of enabled floating controls
15335
+ */
15336
+ floatingControls: OmakaseThemeFloatingControl[];
15337
+ /**
15338
+ * Specifies the list of floating controls that are shown when the video is playing
15339
+ */
15340
+ alwaysOnFloatingControls: OmakaseThemeFloatingControl[];
15341
+ /**
15342
+ * Specifies the list of enabled action icons
15343
+ */
15344
+ actionIcons: OmakaseThemeActionIcon[];
15345
+ /**
15346
+ * Sets the available playback rates in menu
15347
+ */
15348
+ playbackRates: number[];
15349
+ /**
15350
+ * Id of the custom web component used for Player chroming
15351
+ */
15352
+ htmlTemplateId?: string;
15353
+ }
15354
+
15355
+ export declare interface OmakaseThemeConfigUpdateableAttrs {
15356
+ /**
15357
+ * Specifies which time format will be used in the timer control
15358
+ */
15359
+ timeFormat: ChromingTimeFormat;
15360
+ /**
15361
+ * Specifies if the time control can be used for seeking. It is activated by double clicking the time.
15362
+ */
15363
+ timeInteractive: boolean;
15364
+ /**
15365
+ * Specifies control bar visibility
15366
+ */
15367
+ controlBarVisibility: OmakaseControlBarVisibility;
15368
+ /**
15369
+ * Specifies controls visibility
15370
+ */
15371
+ controlBar: OmakaseThemeControl[];
15372
+ /**
15373
+ * Specifies control bar position
15374
+ */
15375
+ progressBarPosition: OmakaseProgressBarPosition;
15376
+ /**
15377
+ * Specifies if the floating VU meter is displayed
15378
+ */
15379
+ isFloatingVuMeterVisible: boolean;
15380
+ /**
15381
+ * Shared configuration for control bar and floating VU meters
15382
+ */
15383
+ vuMeterConfig: Partial<ChromingVuMeterConfig>;
15384
+ /**
15385
+ * Override values for the floating VU meter configuration
15386
+ */
15387
+ floatingVuMeterConfig?: Partial<ChromingVuMeterConfig> | undefined;
15388
+ /**
15389
+ * Override values for the control bar VU meter configuration
15390
+ */
15391
+ controlBarVuMeterConfig?: Partial<ChromingVuMeterConfig> | undefined;
15392
+ }
15393
+
15394
+ export declare enum OmakaseThemeControl {
15395
+ PLAY = "PLAY",
15396
+ FRAME_FORWARD = "FRAME_FORWARD",
15397
+ TEN_FRAMES_FORWARD = "TEN_FRAMES_FORWARD",
15398
+ FRAME_BACKWARD = "FRAME_BACKWARD",
15399
+ TEN_FRAMES_BACKWARD = "TEN_FRAMES_BACKWARD",
15400
+ FULLSCREEN_TOGGLE = "FULLSCREEN_TOGGLE",
15401
+ VOLUME = "VOLUME",
15402
+ TRACK_SELECTOR = "TRACK_SELECTOR",
15403
+ PLAYBACK_RATE = "PLAYBACK_RATE",
15404
+ DETACH_TOGGLE = "DETACH_TOGGLE",
15405
+ TIME_TOGGLE = "TIME_TOGGLE",
15406
+ CLOSE = "CLOSE",
14420
15407
  ROUTER = "ROUTER",
14421
15408
  VU_METER = "VU_METER",
14422
15409
  VU_METER_TOGGLE = "VU_METER_TOGGLE"
@@ -14846,7 +15833,15 @@ declare const OmakaseTimeDisplay_base: {
14846
15833
  prototype: HTMLElement;
14847
15834
  };
14848
15835
 
14849
- declare type OmakaseTimeDisplayFormat = 'timecode' | 'standard';
15836
+ export declare const OmakaseTimeDisplayAttributes: {
15837
+ FORMAT: string;
15838
+ COUNTDOWN: string;
15839
+ AUDIO: string;
15840
+ WITH_DURATION: string;
15841
+ EDITABLE: string;
15842
+ };
15843
+
15844
+ export declare type OmakaseTimeDisplayFormat = 'timecode' | 'standard';
14850
15845
 
14851
15846
  export declare class OmakaseTimeEdit extends HTMLElement {
14852
15847
  static get observedAttributes(): string[];
@@ -15381,6 +16376,12 @@ declare const OmakaseTimeRange_base: {
15381
16376
  get observedAttributes(): string[];
15382
16377
  } & typeof MediaTimeRange;
15383
16378
 
16379
+ export declare const OmakaseTimeRangeAttributes: {
16380
+ NAME: string;
16381
+ OMAKASE: string;
16382
+ MARKER_ID: string;
16383
+ };
16384
+
15384
16385
  export declare class OmakaseTimeSkipButton extends OmakaseTimeSkipButton_base {
15385
16386
  static get observedAttributes(): string[];
15386
16387
  private _player;
@@ -15769,7 +16770,12 @@ declare const OmakaseTimeSkipButton_base: {
15769
16770
  get observedAttributes(): string[];
15770
16771
  } & typeof MediaChromeButton;
15771
16772
 
15772
- declare type OmakaseTimeSkipUnit = 'frame' | 'second' | 'percent';
16773
+ export declare const OmakaseTimeSkipButtonAttributes: {
16774
+ UNIT: string;
16775
+ AMOUNT: string;
16776
+ };
16777
+
16778
+ export declare type OmakaseTimeSkipUnit = 'frame' | 'second' | 'percent';
15773
16779
 
15774
16780
  export declare class OmakaseTimeToggle extends OmakaseTimeToggle_base {
15775
16781
  private _chroming;
@@ -16263,6 +17269,7 @@ declare interface OmakaseTrackCommonApi {
16263
17269
  export declare class OmakaseTrackSelector extends OmakaseDropdownSelector {
16264
17270
  protected readonly dropdownIdPrefix = "omakase-track-dropdown";
16265
17271
  protected readonly dropdownClass: string;
17272
+ protected readonly toggleIconClass: string;
16266
17273
  private _mainMediaType;
16267
17274
  static get observedAttributes(): string[];
16268
17275
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
@@ -16304,7 +17311,23 @@ export declare class OmakaseTrackSelector extends OmakaseDropdownSelector {
16304
17311
  private hideRouter;
16305
17312
  }
16306
17313
 
16307
- declare type OmakaseVolumeFlyoutDirection = 'left' | 'right' | 'up' | 'down';
17314
+ export declare const OmakaseTrackSelectorAttributes: {
17315
+ ROUTER: string;
17316
+ DROPDOWN: string;
17317
+ ALIGNMENT: string;
17318
+ POSITION: string;
17319
+ CONTAINER_RIGHT: string;
17320
+ DROPDOWN_CLASS: string;
17321
+ TOGGLE_CLASS: string;
17322
+ FLOATING: string;
17323
+ CARET: string;
17324
+ TOGGLE_BACKGROUND: string;
17325
+ EXPAND_DIRECTION: string;
17326
+ REPRESENTATION: string;
17327
+ OPTION_ALIGNMENT: string;
17328
+ };
17329
+
17330
+ export declare type OmakaseVolumeFlyoutDirection = 'left' | 'right' | 'up' | 'down';
16308
17331
 
16309
17332
  export declare class OmakaseVolumeRange extends OmakaseVolumeRange_base {
16310
17333
  private _player;
@@ -17268,10 +18291,8 @@ export declare class Player implements PlayerApi, Destroyable {
17268
18291
  setMediaRotation(mediaRotation: MediaRotationValue): Observable<void>;
17269
18292
  protected sanitizeMediaRotation(mediaRotation: MediaRotationValue): MediaRotationValue;
17270
18293
  unloadMainMedia(): Observable<void>;
17271
- getPlaybackEngine(mainMediaType: MainMediaType.HLS): PlayerPlaybackEngineMapping[MainMediaType.HLS];
17272
- getPlaybackEngine(mainMediaType: MainMediaType.MP4): PlayerPlaybackEngineMapping[MainMediaType.MP4];
17273
- getPlaybackEngine(mainMediaType: MainMediaType.AUDIO_FILE): PlayerPlaybackEngineMapping[MainMediaType.AUDIO_FILE];
17274
- getPlaybackEngine(mainMediaType: MainMediaType.SLATE): PlayerPlaybackEngineMapping[MainMediaType.SLATE];
18294
+ getPlaybackEngine(): AnyPlayerPlaybackEngine | undefined;
18295
+ getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T] | undefined;
17275
18296
  toggleFullScreen(): Observable<void>;
17276
18297
  isFullScreen(): boolean;
17277
18298
  extractVideoKeyframe(options?: VideoKeyframeOptions): Observable<VideoKeyframe>;
@@ -17349,19 +18370,20 @@ export declare interface PlayerApi extends PlayerCommonApi {
17349
18370
  * Restores a previously persisted player session (playback position, audio/text state, etc.).
17350
18371
  */
17351
18372
  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
18373
  /**
17361
- * Returns the playback engine instance for the given media type, providing
17362
- * access to engine-specific configuration (e.g. HLS.js internals).
18374
+ * Returns the playback engine of the currently loaded main media, providing access to
18375
+ * engine-specific internals (e.g. hls.js instance). Narrow the result on {@link PlayerPlaybackEngine.mainMediaType}.
18376
+ *
18377
+ * @returns Playback engine, or undefined if main media is not loaded.
18378
+ */
18379
+ getPlaybackEngine(): AnyPlayerPlaybackEngine | undefined;
18380
+ /**
18381
+ * Returns the playback engine of the currently loaded main media, only if it is of the given main media type.
18382
+ *
18383
+ * @param mainMediaType - Expected main media type.
18384
+ * @returns Playback engine, or undefined if main media is not loaded or is of a different type.
17363
18385
  */
17364
- getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T];
18386
+ getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T] | undefined;
17365
18387
  /** Whether the player is currently in fullscreen mode. */
17366
18388
  isFullScreen(): boolean;
17367
18389
  /**
@@ -18431,11 +19453,8 @@ export declare interface PlayerLocalApi extends PlayerInternalApi, Destroyable {
18431
19453
  setChromingInternal(chroming: ChromingInternalApi): void;
18432
19454
  loadMainMedia(mainMediaId: MainMedia['id']): Observable<MainMedia>;
18433
19455
  clearPlayerSession(): void;
18434
- getPlaybackEngine(mainMediaType: MainMediaType.HLS): PlayerPlaybackEngineMapping[MainMediaType.HLS];
18435
- getPlaybackEngine(mainMediaType: MainMediaType.MP4): PlayerPlaybackEngineMapping[MainMediaType.MP4];
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];
19456
+ getPlaybackEngine(): AnyPlayerPlaybackEngine | undefined;
19457
+ getPlaybackEngine<T extends MainMediaType>(mainMediaType: T): PlayerPlaybackEngineMapping[T] | undefined;
18439
19458
  }
18440
19459
 
18441
19460
  export declare interface PlayerLocalConfig extends PlayerInternalConfig {
@@ -18503,10 +19522,12 @@ export declare interface PlayerPlaybackChangeEventData extends Serializable {
18503
19522
  playerPlayback: PlayerPlayback;
18504
19523
  }
18505
19524
 
18506
- declare interface PlayerPlaybackEngine {
19525
+ export declare interface PlayerPlaybackEngine<T extends MainMediaType = MainMediaType> {
19526
+ /** Main media type this engine plays, use it to narrow {@link AnyPlayerPlaybackEngine}. */
19527
+ readonly mainMediaType: T;
18507
19528
  }
18508
19529
 
18509
- declare type PlayerPlaybackEngineMapping = {
19530
+ export declare type PlayerPlaybackEngineMapping = {
18510
19531
  [MainMediaType.HLS]: HlsPlayerPlaybackEngine;
18511
19532
  [MainMediaType.MP4]: Mp4PlayerPlaybackEngine;
18512
19533
  [MainMediaType.AUDIO_FILE]: AudioFilePlayerPlaybackEngine;
@@ -19658,6 +20679,31 @@ declare class SeekStepper {
19658
20679
  reset(): void;
19659
20680
  }
19660
20681
 
20682
+ export declare const SegmentationDomClasses: {
20683
+ mediaChromePlayheadToMarkerStart: string;
20684
+ mediaChromePlayheadToMarkerEnd: string;
20685
+ mediaChromeCreateMarker: string;
20686
+ mediaChromeDeleteMarker: string;
20687
+ mediaChromeNextMarker: string;
20688
+ mediaChromePreviousMarker: string;
20689
+ mediaChromeLoopOnMarker: string;
20690
+ mediaChromeSplitMarker: string;
20691
+ mediaChromeMarkIn: string;
20692
+ mediaChromeMarkOut: string;
20693
+ mediaChromeColorSelector: string;
20694
+ markLabel: string;
20695
+ markDisplay: string;
20696
+ markDisplaySizer: string;
20697
+ markDisplayValue: string;
20698
+ colorSelectorFlyout: string;
20699
+ colorSelectorGrid: string;
20700
+ colorSelectorOption: string;
20701
+ colorSelectorActive: string;
20702
+ colorSelectorLight: string;
20703
+ colorSelectorOpen: string;
20704
+ disabled: string;
20705
+ };
20706
+
19661
20707
  /** What the playlist says about following this rendition from here. */
19662
20708
  export declare interface SegmentedVttReadResult {
19663
20709
  targetDuration: number | undefined;
@@ -19666,6 +20712,12 @@ export declare interface SegmentedVttReadResult {
19666
20712
  updated: boolean;
19667
20713
  }
19668
20714
 
20715
+ /** HLS segment location, byteRange is [start, end) as in EXT-X-BYTERANGE (hls.js Fragment.byteRange), empty for whole resource */
20716
+ declare interface SegmentLocation {
20717
+ url: string;
20718
+ byteRange?: [number, number] | [] | undefined;
20719
+ }
20720
+
19669
20721
  export declare const selectChroming: (state: SessionState) => ChromingSession | undefined;
19670
20722
 
19671
20723
  export declare const selectPlayer: (state: SessionState) => PlayerSession | undefined;
@@ -20027,22 +21079,31 @@ export declare const SidecarVideoDomClasses: {
20027
21079
  */
20028
21080
  export declare interface SidecarVideoDomController extends SidecarDomController {
20029
21081
  videoElement: HTMLVideoElement;
21082
+ /** Buffered time ranges, in video element time. */
20030
21083
  bufferedTimeRanges: BufferedTimeRange[];
21084
+ /**
21085
+ * Video element time of sidecar time 0 - where the first video frame of attached source lands on video element timeline,
21086
+ * same as main media init segment time offset. Sidecar time is video element time minus time offset.
21087
+ * Resolved by {@link loadSource}, 0 until resolved.
21088
+ */
21089
+ timeOffset: number;
21090
+ /** Duration of attached source, in sidecar time, see {@link timeOffset}. */
21091
+ duration: number;
20031
21092
  /**
20032
21093
  * Sidecar video element visibility. Hidden element keeps its layout box, so it's not painted but keeps its size
20033
21094
  * (hls.js level capping relies on it) and becomes visible without re-layout.
20034
21095
  */
20035
21096
  visible: boolean;
20036
21097
  /**
20037
- * Loads source into sidecar video element, completes when media data and metadata are loaded.
21098
+ * Loads source into sidecar video element and resolves its {@link timeOffset}, completes when media data and metadata are loaded.
20038
21099
  *
20039
21100
  * @param url Source url
20040
21101
  * @param startTime Sidecar time loading should start from, so the first fetched data is the one that will be played. Defaults to 0.
20041
21102
  */
20042
21103
  loadSource(url: string | undefined, startTime?: number): Observable<void>;
20043
21104
  /**
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
21105
+ * Resolves source duration in sidecar time without loading media data, so no frame is decoded. Video element is left without source.
21106
+ * - MP4 - only metadata is loaded, and the first video frame time is read to resolve time offset
20046
21107
  * - HLS - only playlists are fetched, duration is sum of media playlist segment durations
20047
21108
  *
20048
21109
  * @param url Source url
@@ -20106,6 +21167,9 @@ export declare interface SidecarVideoTrackControllerConfig extends SidecarTrackC
20106
21167
  * If inactive, keeps warming up, so it can be activated without seeking
20107
21168
  * - after time window, holds the frame at {@link SidecarTimeWindow.cutEndTime}
20108
21169
  *
21170
+ * Sidecar time is mapped to video element time through {@link SidecarVideoDomController.timeOffset}, so sidecar time 0 is where its first video frame
21171
+ * 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.
21172
+ *
20109
21173
  * Sidecar video drifting from main media is corrected by adjusting its playback rate, or by seeking when drift is too large.
20110
21174
  *
20111
21175
  * Video element can't play backwards nor faster than {@link SEEK_STEP_PLAYBACK_DEFAULTS.maxNativePlaybackRate}. At such main media playback rates
@@ -20123,6 +21187,10 @@ export declare class SidecarVideoTrackControllerImpl extends BaseSidecarTrackCon
20123
21187
  protected _seekStepper: SeekStepper;
20124
21188
  constructor(trackState: MediaContainerTrackState, playerController: PlayerController, domController: SidecarVideoDomController, config?: Partial<SidecarVideoTrackControllerConfig>);
20125
21189
  protected get videoElement(): HTMLVideoElement;
21190
+ /** Current sidecar time, video element time minus {@link SidecarVideoDomController.timeOffset}. */
21191
+ protected get currentTime(): number;
21192
+ /** Maps sidecar time to video element time. */
21193
+ protected toElementTime(time: number): number;
20126
21194
  /** Whether video element can't play at main media playback rate, sidecar is paused and seeked in steps then. */
20127
21195
  protected isSeekStepPlayback(): boolean;
20128
21196
  /** Video element playback rate, video element is paused while main media plays at playback rate it can't play at. */
@@ -20220,10 +21288,11 @@ export declare interface SlatePlayerControllerConfig extends VirtualPlayerContro
20220
21288
  defaultFrameRate: number | string;
20221
21289
  }
20222
21290
 
20223
- export declare interface SlatePlayerPlaybackEngine extends PlayerPlaybackEngine {
21291
+ export declare interface SlatePlayerPlaybackEngine extends PlayerPlaybackEngine<MainMediaType.SLATE> {
20224
21292
  }
20225
21293
 
20226
- export declare class SlatePlayerPlaybackEngineImpl extends BasePlayerPlaybackEngine implements SlatePlayerPlaybackEngine {
21294
+ export declare class SlatePlayerPlaybackEngineImpl extends BasePlayerPlaybackEngine<MainMediaType.SLATE> implements SlatePlayerPlaybackEngine {
21295
+ readonly mainMediaType = MainMediaType.SLATE;
20227
21296
  constructor(playerController: PlayerController);
20228
21297
  }
20229
21298
 
@@ -20554,7 +21623,7 @@ export declare interface TamsMediaMetadata {
20554
21623
  /**
20555
21624
  * How a TAMS flow is bridged to HLS, resolved from {@link TamsMainMediaLoadOptions}.
20556
21625
  */
20557
- declare enum TamsPlaybackMode {
21626
+ export declare enum TamsPlaybackMode {
20558
21627
  /** Closed range — media playlist with `EXT-X-ENDLIST`. */
20559
21628
  VOD = "VOD",
20560
21629
  /** Start-over live — fixed start growing towards the flow head (`EXT-X-PLAYLIST-TYPE:EVENT`, no endlist). */
@@ -21298,6 +22367,8 @@ declare class ThumbnailWrapper implements Destroyable {
21298
22367
  private _placeholderImg;
21299
22368
  private _placeholderAnimation;
21300
22369
  private _placeholderRetired;
22370
+ private _visible;
22371
+ private _loadedUrl?;
21301
22372
  private _style;
21302
22373
  private _thumbnailHeight;
21303
22374
  constructor(thumbnail: Thumbnail, x: number, placeholderUrl: string | undefined, style: ThumbnailTrackLaneStyle, thumbnailHeight: number);
@@ -24003,6 +25074,11 @@ export declare interface TimelineApi extends Destroyable {
24003
25074
  * 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
25075
  */
24005
25076
  tracks?: Track['id'] | Track | Track['id'][] | Track[];
25077
+ /**
25078
+ * Type of the values held by observation {@link tracks}.
25079
+ * Defaults to `AudioObservationType.WAVEFORM`. Ignored for other sources.
25080
+ */
25081
+ observationType?: AudioObservationType | undefined;
24006
25082
  /**
24007
25083
  * VU Meter configuration, optional
24008
25084
  */