Skip to main content

Chromecast (Google Cast)

The Cast SDK allows a user to select streaming audio-visual content using a sender (Lura Player), and play it on (or cast it to) another device known as the receiver, while controlling playback using the sender.

To enable Google Cast SDK on your player, you need to do the following configuration:

AttributeTypeOptionalDescription
enabledbooleantrueWhether casting is enabled in available devices. (Defaults to false)
appIdstringfalseChromecast receiver application ID.
const config = {
...
cast: {
chromecast: {
enabled: true,
appId: "12345678"
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);