jellyfin / jellyfin-android

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
1.46k stars 241 forks source link

Chromecast controls disappear immediately #459

Open apollace opened 3 years ago

apollace commented 3 years ago

Describe the bug When the app is connected to a Chromecast deice and I start to cast a video the controls appears for a short time at the bottom of the screen just to disappear in less than a second. After that they are gone and the video is not controllable anymore from the app.

To Reproduce

  1. Connect to a Chromecast
  2. Press play to any random video on your jellyfin home screen
  3. The controls appear
  4. The controls disappear.

Expected behavior The controls should remain visible for the whole reproduction time of the video.

Logs Collecting the logs

System:

mholt commented 3 years ago

See #464 for slightly different repro instructions and a screenshot of the remote control.

bradbeattie commented 3 years ago

Workaround I found. When it disappears, hit play a second time. Controls persist after that.

jellyfin-bot commented 2 years ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

gr3ger commented 2 years ago

Just here to confirm that this is still happening on the latest stable version. I will compile from master when I find the time and see if the issue is still present.

Flaxee commented 2 years ago

This is still an issue for me with server version 10.7.7 and app version 2.4.4. Are there any work being done to improve this?

bestrocker221 commented 1 year ago

Same issue here, when I connect to the cast and then play the movie, controls disappear and it is impossible to stop/play/forward/etc the movie. Any update?

MrReSc commented 1 year ago

I have the problem too.

Mike55555 commented 1 year ago

Workaround I found. When it disappears, hit play a second time. Controls persist after that.

Doesn't work for me. Only way I can get the controls back is to disconnect the cast connection, force kill Jellyfin, then open Jellyfin, reconnect the cast, and then maybe maybe maybe the controls come back. But usually no, just the same missing controls behaviour.

GottZ commented 1 year ago

any specific logs I should look into to give proper support / debug this myself? I even have this issue in microsoft edge on windows desktop. unrelated.. I know.. but if it happens there too, it might be related to this issue here as well. (the only workaround I found on android is constantly closing and opening jellyfin on android until the remote shows up properly)

20230619_195209

neither /System/Logs/Log?name=log_20230619.log nor browser dev tools provide any insight..

do I need to set logging verbose somewhere? how?

interestingly this works fine: image

Snowmansir commented 1 year ago

Still happening! Edit: since it's marked as off topic anyways, and YES IT"S STILL HAPPENING. I'm no longer using jellyfin, tired of the issues it creates over and over.

justinyotabyte commented 11 months ago

I too am experiensing this issue. Unfortunately, as I cannot control the chromecast any other way, it renders jellyfin unusable in this context.

youdontknowmu commented 11 months ago

Hi there,

Same problem here, whenever I cast something from Android app, the playback control only appears for a few secs then doesn't show up after. Closing/opening jellyfin doesn't make it reappear. I don't see the playback control while casting with jellyfin x64 on windows.

I still manage to see what is casting from the dashboard on the server, but I can't control anything from here.

Does it with any kind of videos, HVEC, X264

Tell me if I can help.

Terrance commented 10 months ago

For completeness, copying over observations from #1211:

perkyquirky commented 9 months ago

I can confirm I have had this issue for 6 months now. It persisted on the Jellyfin server being run on both Windows and Ubuntu server. Across multiple phones, Oneplus 8 Pro, Pixel 5, Pixel 7a (both stock OS and GrpaheneOS).

perkyquirky commented 6 months ago

Further adding to my previous post. I read somewhere else that it may be an issue with Chromecasts and being finicky with non https connections.

I was previously using it only on my internal network so I never bothered putting a certificate on it.

I have now made it publicly available with a domain and a valid certificate for https. The error still occurs with a valid https connection.

The only other thing I think it could be is that it's the age of my Chromecast? It's the second generation one.

Terrance commented 6 months ago

I can see #1296 is Chromecast-related and recently added, so I've built a debug copy of the app from master, but the play controls are still being hidden shortly after starting playback.

I'm on a first-generation Chromecast here, connecting to a local IP over HTTP (I do have a working domain and HTTPS, but no public access and the Chromecast doesn't have access to internal DNS), if relevant.

derekschartung commented 4 months ago

Same issue for me except with DLNA devices like Audio Pro speakers.

deVeganist commented 4 months ago

Hi Guys, experienced here the same problem on 1 android phone as well with casting jellyfin to chromecast that the control buttons disappear. Other main phone it worked perfectly. solved this issue here in few minutes (first was googling to find it was a common thing, happily there were more users having this problem so I as rederecting to this page). The other phone had not the home app installed. After installing the home app on the other android device al remote buttons where there and working perfectly. Hopes this message will help you all. grtz,

Mike55555 commented 4 months ago

@deVeganist, you are referring to the Google Home app yes? Or something else? I already have the Google Home app on my phone and still have this problem in Jellyfin 99% of the time. (About 1% of the time it just works the way it's supposed to... no idea why).

lugui1998 commented 3 months ago

I just installed jellyfin on a local server, it works fine on browser but when I try to use my Android to cast to Chromecast, as soon as it tries to display the controls, the app crashes

daniels0056 commented 3 months ago

The issue got even worse after the lastest Chromecast hardware update. I think it's something about the API version Jellyfin has targeted.

It's the same in the web app, casting via browser is equally as buggy as the Android app.

This is so sad, it's literally the only use for me. I only watch content on my TV via Chromecast.

Is there any way to have the maintainers start a public funding or something to hire a developer who could fix this?

Mike55555 commented 3 months ago

For the last week or two, when I cast, I now see "Jellyfin for Chromecast" show up on my TV (before I start playing content). I presume this is a change from the Android app side of things. It feels like the connection holds better now -- perhaps working properly for me ~50% of the time, rather than 1% of the time. Still lose the controls quite often though - the problem is not solved, just less annoying than before.

daniels0056 commented 3 months ago

For anyone interested I've found a workaround until the app is solved. Uninstall the Android app and use the browser instead, the casting is equally as buggy but once you start a show or movie, switch to the Google Home app which have all controls and does not bug.

It's a hassle to jump between apps but at least this way it's usable.

Tukajo commented 3 weeks ago

I'm a developer and I am interested in trying to tackle this as it appears the chromecast functionality is low priority for most of the devs here.

I am new to this space though so it may take some time to ramp up/figure things out with the spare time I have. If anyone has a resource or connection to try and get me up to speed quickly I'd love to pair/tackle this with someone instead of digging through new ground alone.

nielsvanvelzen commented 3 weeks ago

@Tukajo for chromecast support there are 3 relevant repositories:

If you have any questions the best way to ask is in our development chats listed at https://jellyfin.org/contact. Available via Matrix and/or Discord.