-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launching the demo with custom exolist.json does not work on recent Android TV #438
Comments
This works around the issue described in androidx#438
Thanks for your report! Can you repro this with Sabrina when the When I do this for instance with this file that is served as json, then this works as intended I think. When I do the same with a file from the device that has a When I test this with a a device with for instance API 30 or an ATV emulator, then Android presents me a selection of the apps that can handle the given file which is Chrome and the demo app. I can select the ExoPlayer demo app and it starts as expected. It's a bit different with a device that runs Android 13. There, the json file is always opened by Chrome. When I disable Chrome, the ExoPlayer demo app is started directly without asking. The behavior corresponds to these two apps being able to open on API 30, but on Android 13, I don't know how to convince Android to ask me which app to use instead of defaulting to Chrome. However, as you point out. The demo app should just be properly documented and work as documented. I'm going to fix this by adding an action |
This comment was marked as spam.
This comment was marked as spam.
Just tested with your link and same result. Action VIEW produces a toast, with my PICK hack included opens just fine. Agreed btw that BROWSE probably makes more sense here. I also tested with this that certainly has I actually have a suspicion it might be related to a specific system-installed, un-removeable |
This works around the issue described in androidx#438
This works around the issue described in androidx#438
This works around the issue described in #438
Media3 Version
Media3 1.0.2
Devices that reproduce the issue
Devices that do not reproduce the issue
I didn't check others, but seems like other AndroidTVs with OS version > 10 might be generally affected
Reproducible in the demo app?
Yes
Reproduction steps
./gradlew :demo:installWithDecoderExtensionsRelease
.exolist.json
file and put it on a public URLandroid.intent.action.VIEW
as instructedExpected result
The app should open with the picker UI in
SampleChooserActivity
Actual result
Actual result: "You don't have an app that can do this" toast message from Android system.
I believe the relevant loglines from logcat output are:
If i modify the sample app to also allow
android.intent.action.PICK
in theintent-filter
it works as expected, and relevant adb logcat lines read ( commit here kaidokert@498d483 )This isn't an
androidx.media
issue per se, but it's still an issue with the default demo code / instructions. Happy to pull request the ".PICK" workaround if that's helpfulMedia
https://gist.githubusercontent.com/kaidokert/888032c77e4c68cbb0d0c44928d5ba3d/raw/16849f69e04cc59b11dd1f92741f7facb252bcc1/yts.exolist.json
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: