Vidstack has a new home: Video.js 10. Migrate

Buttons

Google Cast Button

This component is used to request remote playback via Google Cast.

INFO

See the Google Cast Provider for more information.

HTMLAttributes<HTMLButtonElement>
Ref<HTMLButtonElement>

A button for requesting Google Cast.

import { GoogleCastButton, type GoogleCastButtonProps } from "@vidstack/react";
<GoogleCastButton>
  <ChromecastIcon />
</GoogleCastButton>
PropTypeDefault
asChild
boolean
false
children
ReactNode
null
disabled
boolean
undefined
CallbackType
onMediaGoogleCastRequest
function
/* Example. */
.component[data-foo] {}
NameDescription
data-active
Whether Google Cast is connected.
data-supported
Whether Google Cast is available.
data-state
Current connection state.