Jump to content

Provide media information when casting over chromecast


pajn

Recommended Posts

I'm trying out Emby as a replacement for Plex due to issues with Plex. The issues I had with Plex are solved and overall the experience is quite smooth, thanks for that!

 

One thing I quite badly miss though is that Emby does not provide any media information to the Chromecast while casting. This in turn makes a lot of functionality the Chromecast normally provides to go missing. I get no casting notifications that allow me to control the playback, the Google Home app and the Nest Hub displays that Emby is casting but wont let me control the playback (normally it gives, play/pause, next and previous buttons) and also my home automation system isn't aware of the playback. I have streamlined all my media consumption via Chromecast and cast-enabled speakers so even if I probably could use Emby apps to do similar controls, I don't want to special case it when all other media sources can be controlled via Googles unified interfaces.

 

I assume that you have developed a custom receiver application for the Chromecast as this otherwise should come as standard. I believe that what you need to do is to call setMediaInformation on the PlayerManager object https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.PlayerManager#setMediaInformation

 

or if you are still stuck on the older API https://developers.google.com/cast/docs/reference/receiver/cast.receiver.MediaManager#setMediaInformation

  • Like 1
Link to comment
Share on other sites

Hi, you do get a notification on your smartphone, right?

I do get the Emby notification, but not the Google Home "A device on your network is casting". While the Emby notification is good, it only appears on the device that is casting while the Google Home notification would appear on all Android devices on my network.

 

Emby: https://photos.google.com/share/AF1QipMnrivvt_mTT1E2MEFNJCUdBNX1HGH2od3oiUCX3hvIXv4atPUqLZPSmGnqKMZqTQ?key=M083czNKNEdlQzJRendfSUJVa3dRTElVQU5hU2dR

 

Other apps: https://photos.google.com/share/AF1QipMtbkurCJkY6P06x66tEwD_uEY8xQHbRtBGFjoMyOoVTyLmpCEaLSh4H_Qs-itbrA?key=ejlTa1ZTalYzQlFkenJCU1Y2REpTWHNSdWlmaGlB

Link to comment
Share on other sites

  • 2 weeks later...
SamES

I might be missing something here.

 

From my laptop, I tried casting from Netflix, then Emby to my Chromecast.

 

On my android phone, in the Home app, these were my two screens

 

5d4981f94f187_capture.png

 

 

In both cases I could adjust the volume and change the playback position using the slider.  I could also pause playback.  The only issue I had was that I could not resume playback via Home when using Emby as the icon to did not change state from pause to play.  I also had the same issue if pausing from the notification.  It works fine in Netflix.  This is something I can look into.

 

Aside from that, the playback controls in both apps were identical.

 

What additional controls are you expecting to see?

 

Link to comment
Share on other sites

SamES

And this is the notification I receive on my phone when casting from my laptop

 

5d4985d562b29_Screenshot_20190806234618.

Edited by SamES
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...