UNPKG

bitmovin-player-ui

Version:
36 lines (35 loc) 1.18 kB
import { SeekBar, SeekBarConfig } from './SeekBar'; import { UIInstanceManager } from '../../UIManager'; import { PlayerAPI } from 'bitmovin-player'; /** * Configuration interface for the {@link VolumeSlider} component. * * @category Configs */ export interface VolumeSliderConfig extends SeekBarConfig { /** * Specifies if the volume slider should be automatically hidden when volume control is prohibited by the * browser or platform. This currently only applies to iOS. * Default: true */ hideIfVolumeControlProhibited?: boolean; /** * Specifies if the volume slider should be automatically hidden on mobile devices. * Default: true */ hideOnMobile?: boolean; } /** * A simple volume slider component to adjust the player's volume setting. * * @category Components */ export declare class VolumeSlider extends SeekBar { private volumeTransition; constructor(config?: VolumeSliderConfig); private setVolumeAriaSliderValues; configure(player: PlayerAPI, uimanager: UIInstanceManager): void; private updateVolumeWhileScrubbing; private detectVolumeControlAvailability; release(): void; }