# GoogleCast

Options for the Google Cast extension that configures the receiver and load request

Adds the [Google Cast extension](https://videojs.org/docs/framework/react/guides/architecture) to the player’s media. It renders nothing — place it inside the player as a sibling of the media element, and pair it with a [CastButton](https://videojs.org/docs/framework/react/reference/components/cast-button). See [Cast to AirPlay and Chromecast](https://videojs.org/docs/framework/react/guides/casting) for the complete setup.

## Import

```bash
pnpm add @videojs/react @videojs/google-cast
```

```tsx
import { GoogleCast } from '@videojs/react/extensions/google-cast';
```

## Anatomy

```tsx
<GoogleCast />
```

## Options

| Prop | Type | Description |
| --- | --- | --- |
| `receiver` | `string` | Cast receiver application ID. Defaults to Google’s Default Media Receiver (`CC1AD845`) |
| `src` | `string` | Source URL loaded on the receiver. Defaults to the source the browser is playing |
| `contentType` | `string` | MIME type of the Cast source. When unset, the receiver infers it from the URL |
| `streamType` | `'on-demand' \| 'live'` | Stream type reported to the receiver. Falls back to the player’s stream type |
| `customData` | `object` | Custom data sent to the receiver with each load request |

When the Cast `src` is an HLS playlist, Video.js detects the segment format and sets the receiver’s `hlsSegmentFormat` and `hlsVideoSegmentFormat` load-request fields. The Default Media Receiver plays HLS natively, so no extra receiver setup is needed.

## See also

- [Cast to AirPlay and Chromecast](https://videojs.org/docs/framework/react/guides/casting): Add remote playback to a player
- [CastButton component reference](https://videojs.org/docs/framework/react/reference/components/cast-button)
- [Remote Playback feature reference](https://videojs.org/docs/framework/react/reference/api/feature-remote-playback)

---

React documentation: https://videojs.org/docs/framework/react/llms.txt
All documentation: https://videojs.org/llms.txt
