<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

Cast Exit Cast Exit
<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>

None

NameDefault TypeDescription
entersvgAn element shown when the media is not in casting mode and pressing the button will open the Cast menu
exitsvgAn element shown when the media is in casting mode and pressing the button will trigger exiting casting mode

See our styling docs