<media-cast-button>
Button to bring up the Cast menu and select playback on a Chromecast device.
Show cast menu
<media-cast-button></media-cast-button>
Stop casting
<media-cast-button media-is-casting></media-cast-button>
Alternate content
<media-cast-button>
<span slot="enter">Cast</span>
<span slot="exit">Exit</span>
</media-cast-button>
<media-cast-button media-is-casting>
<span slot="enter">Cast</span>
<span slot="exit">Exit</span>
</media-cast-button>
Attributes
Section titled AttributesNone
Slots
Section titled SlotsName | Default Type | Description |
---|---|---|
enter | svg | An element shown when the media is not in casting mode and pressing the button will open the Cast menu |
exit | svg | An element shown when the media is in casting mode and pressing the button will trigger exiting casting mode |
Styling
Section titled StylingSee our styling docs