jellyfin-chromecast icon indicating copy to clipboard operation
jellyfin-chromecast copied to clipboard

Overlays over video on Chromecast

Open kevincox opened this issue 5 years ago • 16 comments

Describe the bug When watching something on Chromecast overlays appear over the video. There appears to be no way to dismiss them. I have seen both an overlay with the current album-art, title and a progrss bar (which is stuck at zero) and overlays for libraries, shows, seasons or episode information.

To Reproduce

  1. Start playing a video.
  2. Go to home.

Expected behavior

The video continued to play, unobstructed on the Chromecast.

System (please complete the following information):

  • OS: NixOS
  • Browser: Android app
  • Jellyfin Version: 10.4.0

kevincox avatar Nov 30 '19 12:11 kevincox

This feels like a chromecast-specific issue, transferred.

JustAMan avatar Dec 02 '19 14:12 JustAMan

Interestingly I switched to using the website in Chrome on Android and I didn't see the issue anymore. So it appears that it is somehow specific to the Android app.

kevincox avatar Dec 02 '19 15:12 kevincox

cc @dkanada

JustAMan avatar Dec 02 '19 15:12 JustAMan

I've actually been experiencing this in Chrome on Android recently as well. It might have been a coincidence I didn't experience it earlier.

kevincox avatar Jan 04 '20 20:01 kevincox

This happens because "display mirroring" is enabled by default on mobile interfaces including the Android app. It's tied to DLNA or Kodi or something and shouldn't be anywhere near the Chromecast UX. When a user is casting, regardless or whether or not there is content playing, and the user goes to an item details page, that information is overlayed (100% opaque) with no way to dismiss.

image

Ideally, "display mirroring" would be disabled and any mention of it hidden for Google Cast users.

Applicable to both the CAF and legacy (for which this was reported) receivers.

hamburglar2160 avatar Jul 03 '20 14:07 hamburglar2160

I'm getting something similar - turned off Display Mirroring.

Strange thing is it's not consistent but happens more with some titles than it does with others.

The problem is exactly like the one in the OP, bottom third translucent overlay with the movie cover on the left, a play symbol to the right of that, the title to the right of that and then a play bar that remains permanently suck at 0.

Reverse proxied, nginx & sslh recently set up too. Will give it a shot without sslh just to check that it's not getting in the way somehow.

christovic avatar Jul 17 '20 23:07 christovic

My particular issue was tied to the use of sslh I think. I haven't managed to make it do that again after stopping sslh and just serving over HTTPS directly again.

Will look into it further to see if I can use sslh and resolve this issue.

Seems like it's a timeout issue? Or some packets aren't being routed sometimes... Really not sure but would be happy to help out if there's anything I can do

christovic avatar Jul 18 '20 12:07 christovic

@YouKnowBlom and @cvium are probably the only two people who know anything about this codebase, so we don't have many experts. You're welcome to start making changes though, this client is completely separate from the web source so it's much easier to update the code. I also recently added an unstable instance that anyone can test from their web client so we can catch bugs before they hit a stable release.

dkanada avatar Jul 18 '20 12:07 dkanada

Awesome, thanks for that. Will try and play around with it if I get the chance!

christovic avatar Jul 18 '20 12:07 christovic

Currently, the problem is reproducible by:

  1. Playing some video
  2. Pausing it
  3. Browsing around
  4. Unpausing

As long as playback is running, the code should currently reject the displayitem requests.

https://github.com/jellyfin/jellyfin-chromecast/pull/89

I have a commit that "solves" this but I hate it and it shouldn't be the final version of the fix.

We have two options here:

  • Don't allow browsing during pause either. Easy option. But then you can only browse when playback is stopped
  • Allow browsing during pause. It's a harder option because when displayitem happens, the old state is lost so that unpause can't know if it was playing video or audio. Similarly, when pausing you want to go back to the details overlay, but if you haven't been there yet then it should go to waiting instead. Or maybe stay. There needs to be some additional global state to take care of this.

There is also some food for thought:

  • If playing audio, browsing around for more music to add to the playlist could be nice to have onscreen, but there's no clear definition of when the user is finished browsing and the normal overlay should be displayed again. Currently, my best idea is to have a timeout of... say.. 2 minutes before it goes back to the playback view.

Finally, I want to advocate for this feature, because it's useful when picking a movie, to have some information about it on screen for the guests to read and decide if they want to watch.

hawken93 avatar Dec 08 '20 02:12 hawken93

I think it's a bit more complicated as well, because as the item is loading I also think there's an opportunity for it to happen

hawken93 avatar Jan 04 '21 15:01 hawken93

This issue is constant for me whether or not display mirroring is disabled; just chiming in that is still very much an issue.

itsthejoker avatar Sep 19 '21 00:09 itsthejoker

As noted, this is still an issue for me and seems title specific. Some title no issue, some it disappears after restarting, some it is permanently visible.

pone7777 avatar Oct 10 '21 17:10 pone7777

I also have the same issue as christovic. The bottom of the screen bar with poster, title and progress (stuck at 0) never disappears on some titles, regardless of how many times I try. I even have it on some titles that I watched before without the issue. On some titles its nonexistent, on some restart helps, on some cannot get rid of it.

rsniezek avatar Dec 06 '21 07:12 rsniezek

I'm pinging this issue back up. I had this issue with numerous video files, but not all of them. I'm trying to find a pattern still. This occurs with the latest jellyfin app, casting to a google chromecast (1st gen). Tried to stop the stream and starting it again numerous times, to no avail.

hundredfire avatar Jan 03 '24 15:01 hundredfire

Same issue here!

gomme600 avatar Mar 27 '24 17:03 gomme600