UNPKG

bitmovin-player-ui

Version:
55 lines (54 loc) 1.79 kB
import { Container, ContainerConfig } from '../Container'; import { UIInstanceManager } from '../../UIManager'; import { PlayerAPI, Thumbnail } from 'bitmovin-player'; /** * Configuration interface for a {@link SeekBarLabel}. * * @category Configs */ export interface SeekBarLabelConfig extends ContainerConfig { } /** * A label for a {@link SeekBar} that can display the seek target time, a thumbnail, and title (e.g. chapter title). * * @category Components */ export declare class SeekBarLabel extends Container<SeekBarLabelConfig> { private timeLabel; private titleLabel; private thumbnail; private thumbnailImageLoader; private timeFormat; private appliedMarkerCssClasses; private player; private uiManager; private readonly container; constructor(config?: SeekBarLabelConfig); private initializeTimeFormat; configure(player: PlayerAPI, uimanager: UIInstanceManager): void; private handleSeekPreview; setPositionInBounds(seekPositionPx: number, bounds: DOMRect): void; /** * Sets arbitrary text on the label. * @param text the text to show on the label */ setText(text: string): void; /** * Sets a time to be displayed on the label. * @param seconds the time in seconds to display on the label */ setTime(seconds: number): void; /** * Sets the text on the title label. * @param text the text to show on the label */ setTitleText(text?: string): void; /** * Sets or removes a thumbnail on the label. * @param thumbnail the thumbnail to display on the label or null to remove a displayed thumbnail */ setThumbnail(thumbnail?: Thumbnail): void; private thumbnailCssSprite; private thumbnailCssSingleImage; release(): void; }