You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get a status update when something is streamed on the Chromecast, like the Title, duration, current position in the movie and a snapshot or background picture ?
I can't find any clue on how to do that, everything seems oriented on sending information to the chromecast :)
Thanks !
The text was updated successfully, but these errors were encountered:
Have you tried the player.getStatus() method? Note that this method works only when using the DefaultMediaReceiver, and afaik, you need to at least know what app is receiving to use it.
NOTE I'm using the async/await syntax for clarity, but if you want I can write it using callbacks either way.
// Small helper function to use promises and async/await instead of callbacksconstco=(c : any,b : string)=>util.promisify(c[b].bind(c));letclient=newClient();awaitco(client,'connect')(CHROMECAST_IP_ADDRESS);constapps=awaitco(client,'getStatus')();constsessionId : string=apps.applications[0];constplayer=awaitco(client,'join')(sessionId,DefaultMediaReceiver);conststatus=awaitco(player,'getStatus')();console.log(status);
Hello,
Is there a way to get a status update when something is streamed on the Chromecast, like the Title, duration, current position in the movie and a snapshot or background picture ?
I can't find any clue on how to do that, everything seems oriented on sending information to the chromecast :)
Thanks !
The text was updated successfully, but these errors were encountered: