35 lines
1.5 KiB
TypeScript
35 lines
1.5 KiB
TypeScript
import { MediaChromeButton } from './media-chrome-button.js';
|
|
import { TextTrackLike } from './utils/TextTrackLike.js';
|
|
/**
|
|
* @slot on - An element that will be shown while closed captions or subtitles are on.
|
|
* @slot off - An element that will be shown while closed captions or subtitles are off.
|
|
* @slot icon - An element for representing on and off states in a single icon
|
|
*
|
|
* @attr {string} mediasubtitleslist - (read-only) A list of all subtitles and captions.
|
|
* @attr {string} mediasubtitlesshowing - (read-only) A list of the showing subtitles and captions.
|
|
*
|
|
* @cssproperty [--media-captions-button-display = inline-flex] - `display` property of button.
|
|
*/
|
|
declare class MediaCaptionsButton extends MediaChromeButton {
|
|
static get observedAttributes(): string[];
|
|
private _captionsReady;
|
|
constructor(options?: any);
|
|
connectedCallback(): void;
|
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
/**
|
|
* An array of TextTrack-like objects.
|
|
* Objects must have the properties: kind, language, and label.
|
|
*/
|
|
get mediaSubtitlesList(): TextTrackLike[];
|
|
set mediaSubtitlesList(list: TextTrackLike[]);
|
|
/**
|
|
* An array of TextTrack-like objects.
|
|
* Objects must have the properties: kind, language, and label.
|
|
*/
|
|
get mediaSubtitlesShowing(): TextTrackLike[];
|
|
set mediaSubtitlesShowing(list: TextTrackLike[]);
|
|
handleClick(): void;
|
|
}
|
|
export { MediaCaptionsButton };
|
|
export default MediaCaptionsButton;
|