Looking for the old docs? Go here

Display

Announcer

This component is used to announce important updates to screen readers.

The announcer component serves as a vital accessibility feature by dispatching important state updates to screen readers. This component ensures that users with visual impairments are kept informed about the status of media state in real-time. At the moment, this includes playback, volume, captions, fullscreen, picture-in-picture and seeking.

    
    
WARNING

Do not include this component if you’re using the Default or Plyr layouts as it’s already included.

HTMLAttributes
Ref<HTMLElement>
import { MediaAnnouncer, type MediaAnnouncerProps } from "@vidstack/react";
<MediaAnnouncer />
PropTypeDefault
translations
Partial<MediaAnnouncerTranslations>
null
CallbackType
onChange
function