Skip to content
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

Playing Local Video Files gives Missing Storage Exception on v0.24 (fdroid build) #82

Closed
ShareASmile opened this issue Apr 2, 2021 · 9 comments
Labels
duplicate This issue or pull request already exists

Comments

@ShareASmile
Copy link
Contributor

First of all Thanks for very fluent and light on resources video player. I appreciate your work on the app and like using it. However after updating app to v0.24 from fdroid I cannot play videos from Phone Sd Card Storage or External Sd Card. App v0.24 giving Storage Permission Denied Exception (Error Screenshot attached with).

Version 0.16 (fdroid) had played videos fine stored in Phone Sd Card storage as well as External Memory Card.

Device Samsung J2Pro J210F
Android 6.0.1

I Don't want to use Online version & want to rely on installations from fdroid only for secure & easy updates.
Screenshot_20210328-073704

@moneytoo
Copy link
Owner

moneytoo commented Apr 2, 2021

How do you open/select these videos? Do you use the file chooser from within Just Player or do you select/launch it from other app (file manager)?

@ShareASmile
Copy link
Contributor Author

ShareASmile commented Apr 2, 2021

Thanks for responding so quickly.

I mostly select/launch videos through Samsung Phone File Manager. I mostly download study videos & play them one by one by opening through Samsung File Manager & delete them afterwards. Just Player is my currently set default video player. Version 0.16 had no problems using app this way.

@ShareASmile
Copy link
Contributor Author

ShareASmile commented Apr 2, 2021

On further testing I noticed above error only with:-

1:- with Videos in Folders having .nomedia file like WhatsApp>Media>WhatsAppVideos>Sent
2:- With Videos in Hidden Folders with name starting with . For example { .Statuses } folder of WhatsApp.
@moneytoo Appologies for not thoroughly testing before creating issue.

@DennisTheMenace81
Copy link

Hi
I'm also have the exactly same issue, I like to use this player out of kodi 19. I downloaded the xbmc wrapper app and selected the just player as player in kodi. When I open a video in kodi the just player starts, but it gives me an error and the video don't start

Error
Com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceExeption:java.io.FileNotFoundExeption: /storage/Ea79-0417/videos/video.mkv:
Open failed: EACCES (Permission denied)

Isn't it possible to use this app out of kodi, using the xbmc wrapper?

@moneytoo
Copy link
Owner

moneytoo commented Apr 4, 2021

1:- with Videos in Folders having .nomedia file like WhatsApp>Media>WhatsAppVideos>Sent

This works for me as I use 3rd party file manager (Solid Explorer). I will eventually check that on older Samsung but I'm afraid that this is the same issue as #7. Use either the online version (to grant read storage permission manually) or other file manager.

Isn't it possible to use this app out of kodi, using the xbmc wrapper?

If the xmbc wrapper doesn't properly pass the read permission (or you're using Android TV which does't use Storage Access Framework), use the online version and manually grant Just Player read storage permission from the App Info screen.

@DennisTheMenace81
Copy link

😃👍 cool it worked
Thanks a lot for the fast response
I send you a small donation worth of 10€ to your bitcoin address.
Thanks for your work and that Player that can play dolby vision on my ugoos device

@ShareASmile
Copy link
Contributor Author

@moneytoo There should be a way to play requested video flawlessly in such case by Offline flavour itself
Either by Requesting READ_EXTERNAL_STORAGE permission {only in such cases when needed} lika Toast message to grant READ_EXTERNAL_STORAGE instead of Error Toast on Such Errors.

@moneytoo
Copy link
Owner

moneytoo commented Apr 7, 2021

@moneytoo There should be a way to play requested video flawlessly in such case by Offline flavour itself
Either by Requesting READ_EXTERNAL_STORAGE permission {only in such cases when needed} lika Toast message to grant READ_EXTERNAL_STORAGE instead of Error Toast on Such Errors.

I thought about this but decided that instead adding more code, what should be fixed is the root cause - apps not working properly with Storage Access Framework (API available since Android 4.4). This app is basically just an example/demo player of how strict an app can be. (The lack of permissions also actually appeals to some folks.) There are plenty of other apps implementing all the workarounds.

@moneytoo
Copy link
Owner

Duplicate of #7

@moneytoo moneytoo marked this as a duplicate of #7 May 12, 2021
@moneytoo moneytoo added the duplicate This issue or pull request already exists label May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants