Files
pole-book/server/node_modules/media-chrome/dist/menu/media-captions-menu-button.d.ts

39 lines
1.7 KiB
TypeScript

import { MediaChromeMenuButton } from './media-chrome-menu-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-menu-button-display = inline-flex] - `display` property of button.
*/
declare class MediaCaptionsMenuButton extends MediaChromeMenuButton {
#private;
static get observedAttributes(): string[];
constructor(options?: Record<string, any>);
connectedCallback(): void;
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
/**
* Returns the element with the id specified by the `invoketarget` attribute.
* @return {HTMLElement | null}
*/
get invokeTargetElement(): HTMLElement | null;
/**
* 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[]);
}
export { MediaCaptionsMenuButton };
export default MediaCaptionsMenuButton;