media-chrome
Version:
Custom elements (web components) for making audio and video player controls that look great in your website or app.
28 lines (27 loc) • 1.24 kB
TypeScript
import { MediaChromeButton } from './media-chrome-button.js';
declare function getSlotTemplateHTML(_attrs: Record<string, string>): string;
declare function getTooltipContentHTML(): string;
/**
* @slot play - An element shown when the media is paused and pressing the button will start media playback.
* @slot pause - An element shown when the media is playing and pressing the button will pause media playback.
* @slot icon - An element for representing play and pause states in a single icon
*
* @attr {boolean} mediapaused - (read-only) Present if the media is paused.
*
* @cssproperty [--media-play-button-display = inline-flex] - `display` property of button.
*/
declare class MediaPlayButton extends MediaChromeButton {
static getSlotTemplateHTML: typeof getSlotTemplateHTML;
static getTooltipContentHTML: typeof getTooltipContentHTML;
static get observedAttributes(): string[];
connectedCallback(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string | null): void;
/**
* Is the media paused
*/
get mediaPaused(): boolean;
set mediaPaused(value: boolean);
handleClick(): void;
}
export { MediaPlayButton };
export default MediaPlayButton;