ReferenceExtensions
google-cast
Options for the Google Cast extension that configures the receiver and load request
Adds the Google Cast extension to the player. It renders nothing — place it anywhere inside the player, and pair it with a CastButton. It follows whatever media the player attaches, a plain <video> included. 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.