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:
Attribute | Type | Optional | Description |
---|---|---|---|
enabled | boolean | true | Whether casting is enabled in available devices. (Defaults to false) |
appId | string | false | Chromecast receiver application ID. |
const config = {
...
cast: {
chromecast: {
enabled: true,
appId: "12345678"
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);