googlecast / CastVideos-android

Reference Android Sender w/ Framework API: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.
Apache License 2.0
340 stars 180 forks source link

Cast button is not always visible on Android 13 #124

Open sandorbokor opened 1 year ago

sandorbokor commented 1 year ago

I know this is not the sample app's problem, but trying to see how widespread the issue is. We are getting user feedback that casting isn't working well and based on the play reviews the common in these reviews are Android 13 devices.

The issue tracker is kind of dead, nobody answered from the cast team. Maybe here somebody notices it more easliy.

Here is an issue that is very similar to what we are experiencing.

https://issuetracker.google.com/issues/265603732

mudar commented 1 year ago

We had the same issue in our app, and I was able to reproduce it in the sample app. It was not limited to Android 13.

While trying to figure out if this message was related to the issue

W/MediaRouter: Ignoring invalid provider descriptor: null

I ran into the MediaRouter documentation https://developer.android.com/reference/androidx/mediarouter/media/MediaRouter#example I updated the sample app to follow the MediaRouter setup example, and it fixed the missing button issue for both the sample app and our app.

I still have no idea what started causing the issue out of nowhere!