bitmovin-player-ui
Version:
Bitmovin Player UI Framework
30 lines (29 loc) • 994 B
TypeScript
import { Button, ButtonConfig } from '../buttons/Button';
import { UIInstanceManager } from '../../UIManager';
import { PlayerAPI } from 'bitmovin-player';
/**
* Configuration interface for the {@link AdSkipButton}.
*
* @category Configs
*/
export interface AdSkipButtonConfig extends ButtonConfig {
/**
* Message which gets displayed during the countdown is active.
* Supported placeholders: look at {@link StringUtils.replaceAdMessagePlaceholders}
*/
untilSkippableMessage?: string;
/**
* Message displayed when the ad is skippable.
* Supported placeholders: look at {@link StringUtils.replaceAdMessagePlaceholders}
*/
skippableMessage?: string;
}
/**
* A button that is displayed during ads and can be used to skip the ad.
*
* @category Buttons
*/
export declare class AdSkipButton extends Button<AdSkipButtonConfig> {
constructor(config?: AdSkipButtonConfig);
configure(player: PlayerAPI, uimanager: UIInstanceManager): void;
}