ReferenceExtensions
google-cast
Options for the Google Cast extension that configures the receiver and load request
Adds the Google Cast extension 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. See Cast to AirPlay and Chromecast for the complete setup.
Import
Or load it from the CDN:
Anatomy
Options
customData takes an object, so it’s a property only, with no matching attribute.
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.