<media-captions-button>
Button to show/disable captions
Attributes
Section titled AttributesName | Type | Default Value | Description |
---|---|---|---|
no-subtitles-fallback | boolean | false | Controls whether media-chrome will show subtitle tracks if no closed captions tracks are available |
Slots
Section titled SlotsName | 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 |
Example
Section titled Example<media-captions-button>
<svg slot="on"><!-- your SVG --></svg>
<svg slot="off"><!-- your SVG --></svg>
</media-captions-button>
Styling
Section titled StylingSee our styling docs