moneytoo / Player

▶ Simple and lightweight, yet polished and powerful Android video player based on ExoPlayer
https://play.google.com/store/apps/details?id=com.brouken.player
The Unlicense
1.57k stars 182 forks source link

Can't access external storage on Android TV 11 (TCL TV 65C825) #148

Closed psychoboust closed 3 years ago

psychoboust commented 3 years ago

Hello, I can browse for the internal memory, but it doesn't provide any "SDCard Storage" or "Primary Storage" to be able to browse an external device.

The SOC for the TV is MediaTek MT9615 and it runs Android TV 11 I have check the Storage Permission and it's ok.

Can you help ?

moneytoo commented 3 years ago

Does browsing of your external device work with other video players or file managers?

psychoboust commented 3 years ago

yes, no problem, apps like VLC or KODI have no issue to access external device

moneytoo commented 3 years ago

I'm afraid it's because Just Player targets Android 11 which further limits access to storage when not using Storage Access Framework (which is not available at all on Android TV). Other apps work because they still target Android 10 (but starting November this year, it will be no longer possible to target Android 10). Honestly I'm not fully sure on how to work with files on external storages on Android TV 11+, at least not in a way which would allow users to choose both video and subtitle files. I will try asking and investigating more.

However Just Player should still work when opening files from other apps (file managers or even when using with Nova).

Please try using this version Just.Player.v0.53-api29.apk that targets Android 10 just like other apps. Let me know if that works.

psychoboust commented 3 years ago

I confirm it does work with Just.Player.v0.53-api29.apk. I hope you will find a solution for the your next release, thanks again for your work.

filip-spaldon commented 3 years ago

I have problem access internal or external storage on Android 9, model of media box is Zidoo Z9X. I tested v54, v53 (google store version) and v53-api.29, but neither worked.

Just get this error - Intent { act=android.intent.action.OPEN_DOCUMENT cat=[android.intetn.category.OPENABLE typ=video/* (has extras) }

I enabled Storage Permission. Can u help me? Thx

moneytoo commented 3 years ago

@filip-spaldon In your case it should "only" be a problem with detection of storage API. Please send me the full output of AIDA64 (System section) and I will fix that.

filip-spaldon commented 3 years ago

@filip-spaldon In your case it should "only" be a problem with detection of storage API. Please send me the full output of AIDA64 (System section) and I will fix that.

photo5866147873287157902 photo5866147873287157903 photo5866147873287157904

moneytoo commented 3 years ago

@filip-spaldon Should be fixed in Just.Player.v0.55.apk

filip-spaldon commented 3 years ago

@filip-spaldon Should be fixed in Just.Player.v0.55.apk

Yes, storage permission work, but another problem appears... Movies have lags and audio don't work (switching between PCM and Dolby Audii on soundbar), when I tested this movies via VLC everything was fine, but I want play some Dolby Vision movies.

Really thanks for you help, I like your work.

mo123 commented 3 years ago

@filip-spaldon Should be fixed in Just.Player.v0.55.apk

I try v0.55 on RK356x AndroidTV 11 but if clicking the folder button, the app just quits. If I use v0.54 legacy then it works correctly with external storage.

moneytoo commented 3 years ago

I try v0.55 on RK356x AndroidTV 11 but if clicking the folder button, the app just quits. If I use v0.54 legacy then it works correctly with external storage.

I'm not seeing any reported crashes about this in Google Play console (yet) so I will probably need a some log output from the device or bugreport to understand the issue and fix that.

moneytoo commented 3 years ago

I'm closing this as it should hopefully work. I also fixed a reported crash from Google Play console. If there are any other specific problems, please file a new issue with details.