ReferenceDisplay
media-status-indicator
Display temporary visual feedback for keyboard and gesture actions
Import
Anatomy
Behavior
<media-status-indicator> displays feedback for actions emitted by a <media-hotkey> or <media-gesture> in the same player <media-container>. It does not react to buttons, direct player-store changes, or media state changes on their own.
The input event arrives before its action is resolved. The indicator uses the media snapshot from that moment to predict the next visual status:
toggleSubtitles is ignored when the player reports that no captions or subtitles are available. Seek actions, toggleControls, playback-rate actions, and custom actions do not open this indicator.
Use actions to allow only some of the supported actions. Omitting it allows all supported actions.
Set the actions attribute to action names separated by commas, whitespace, or both:
The indicator closes after closeDelay, which defaults to 800 milliseconds. A repeated handled action updates the current value and restarts that close timer without replaying the entry transition.
The element remains in the document with hidden until the next handled action.
Styling
Use data-status to select an icon or other visual treatment, and use the transition attributes for entry and exit styles.
Accessibility
<media-status-indicator> is visual feedback and does not create a live region. Keep every action available through keyboard-operable controls, and pair the player with <media-status-announcer> when state changes should be announced to screen readers. Do not make <media-status-indicator-value> a live region.
Examples
Basic Usage
Focus the player, then press K to play or pause, M to mute, F for fullscreen, C for captions, or I for picture-in-picture.
Focus the player · K: play/pause · M: mute · F: fullscreen · C: captions · I: picture-in-picture