Button to show/disable captions
Name | Type | Default Value | Description |
---|---|---|---|
no-subtitles-fallback |
boolean |
false |
Controls whether media-chrome will show subtitle tracks if no closed captions tracks are available |
Name | Default Type | Description |
---|---|---|
on |
svg |
An element that will be shown while closed captions are on |
off |
svg |
An element that will be shown while closed captions are off |
<media-captions-button>
<svg slot="on"><!-- your SVG --></svg>
<svg slot="off"><!-- your SVG --></svg>
</media-captions-button>
See our styling docs