<media-captions-button>

Button to show/disable captions

Default (no captions or subtitles)

<media-captions-button></media-captions-button>

Closed Captions on ("captions showing")

<media-captions-button
  media-captions-showing="en:English%20Closed%20Captions"
  media-captions-list="en:English%20Closed%20Captions"
></media-captions-button>

Alternate Content

CC CC CC CC
<media-captions-button media-captions-showing="en:English%20Closed%20Captions">
  <span slot="on"><b><u>CC</u></b></span>
  <span slot="off">CC</span>
</media-captions-button>
<media-captions-button>
  <span slot="on"><b><u>CC</u></b></span>
  <span slot="off">CC</span>
</media-captions-button>
NameTypeDefault ValueDescription
default-showingbooleanfalseControls whether media-chrome will show a subtitle or captions tracks by default
no-subtitles-fallbackbooleanfalseControls whether media-chrome will show subtitle tracks if no closed captions tracks are available
NameDefault TypeDescription
onsvgAn element that will be shown while closed captions are on
offsvgAn element that will be shown while closed captions are off

See our styling docs