media-chrome
Version:
Custom elements (web components) for making audio and video player controls that look great in your website or app.
29 lines (28 loc) • 1.41 kB
TypeScript
import { MediaChromeButton } from './media-chrome-button.js';
declare function getSlotTemplateHTML(_attrs: Record<string, string>): string;
declare function getTooltipContentHTML(): string;
/**
* @slot off - An element shown when the media is muted or the media’s volume is 0.
* @slot low - An element shown when the media’s volume is “low” (less than 50% / 0.5).
* @slot medium - An element shown when the media’s volume is “medium” (between 50% / 0.5 and 75% / 0.75).
* @slot high - An element shown when the media’s volume is “high” (75% / 0.75 or greater).
* @slot icon - An element for representing all states in a single icon
*
* @attr {string} mediavolumelevel - (read-only) Set to the media volume level.
*
* @cssproperty [--media-mute-button-display = inline-flex] - `display` property of button.
*/
declare class MediaMuteButton 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;
/**
* @type {string | undefined}
*/
get mediaVolumeLevel(): string | undefined;
set mediaVolumeLevel(value: string | undefined);
handleClick(): void;
}
export default MediaMuteButton;