Used to cast and update currently playing cast media with a new playlist item(s).
If URL signing or Studio DRM are enabled, requestCast()
allows the cast receiver app to attain an updated playlist item, including a signed URL and DRM config.
jwplayer().requestCast([
{
sources: [
{
file: "https://content.jwplatform.com/videos/hEJzN61W-DrwE7pIM.mp4",
},
{
file: "https://content.jwplatform.com/videos/hEJzN61W-DrwE7pIM.webm",
},
],
image: "https://content.jwplatform.com/thumbs/hEJzN61W-1280.jpg",
title: "Cosmos Trailer",
},
]);
Property | Description |
---|---|
sources array | Used for quality toggling and alternate sources See: playlist.sources |