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

Cannot download videos - zmNinja Android 10 - OnePlus 6 #1020

Closed
TheOneOgre opened this issue Dec 5, 2020 · 8 comments
Closed

Cannot download videos - zmNinja Android 10 - OnePlus 6 #1020

TheOneOgre opened this issue Dec 5, 2020 · 8 comments
Labels

Comments

@TheOneOgre
Copy link

TheOneOgre commented Dec 5, 2020

So I've been using zmNinja for a while, but recently have had some issues with playback of certain events. So I tried to download them to view using something like VLC. Well, this does not work, at least on my device. I've attached the logs, but it doesn't seem to be very helpful.

The error is a file/folder not found, but after creating one (which I'd imagine zmNinja should do on its own), the error switches to a "Permission Denied" error.

zmNinja has storage permissions as checked in 'App Info' and everything else seems to be working correctly.

The version of zmNinja you are reporting:

1.6.000 (Play Store - Beta)

The version and OS of ZoneMinder you are using:

1.34.22 - Ubuntu

Platform zmNinja is running on

OnePlus 6 Android 10 (A6003_22_200401)

Did you build the package from source code yourself?
N

Debug logs

Dec 5, 2020 01:16:51:090 AM DEBUG Setting up carousel watchers
Dec 5, 2020 01:16:51:089 AM DEBUG Rebinding watchers of eventCtrl
Dec 5, 2020 01:16:51:075 AM DEBUG Modal is open, closing it
Dec 5, 2020 01:16:41:960 AM INFO >>>Starting checkAllEvents interval...
Dec 5, 2020 01:16:39:492 AM DEBUG Saving error:"/storage/emulated/0/Pictures/zmNinja/2020-11-5-1.mp4: open failed: ENOENT (No such file or directory)"
Dec 5, 2020 01:16:39:470 AM DEBUG Now trying to move it to album
Dec 5, 2020 01:16:39:470 AM DEBUG local download complete: file:///data/user/0/com.pliablepixels.zmninja_pro/files/zmNinja-eid-27519.mp4
Dec 5, 2020 01:16:38:928 AM DEBUG Trying to save image to album: zmNinja
Dec 5, 2020 01:16:38:928 AM INFO >>saveEvent: File path to grab is https://REDACTED:443/zm/index.php?view=view_video&eid=27519&token=<removed>
Dec 5, 2020 01:16:38:928 AM DEBUG -->Going to try and download https://REDACTED:443/zm/index.php?view=view_video&eid=27519&token=<removed>
Dec 5, 2020 01:16:38:927 AM DEBUG saveEvent  in EventModalCtrl called with video and 27519
Dec 5, 2020 01:16:38:899 AM DEBUG EventModalCtrl: Permission checking for write```
@welcome
Copy link

welcome bot commented Dec 5, 2020

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you follow the issue template or I may not respond.

@TheOneOgre TheOneOgre changed the title zmNinja Android 10 - OnePlus 6 - Cannot download videos Cannot download videos - zmNinja Android 10 - OnePlus 6 Dec 5, 2020
@pliablepixels
Copy link
Member

I'm not quire sure I understand the VLC part. Yes, zmN should be creating its own folder if it doesn't exist. Given you created it manually might have lead to the permissions issue, but the larger question is what is the full workflow and how does VLC come in?

@TheOneOgre
Copy link
Author

TheOneOgre commented Dec 5, 2020 via email

@pliablepixels
Copy link
Member

okay, I'll spin up an android 10 emulator this weekend and see what is going on.

@TheOneOgre
Copy link
Author

TheOneOgre commented Dec 5, 2020

Sounds good. If you need help with debugging if this happens to be a device specific issue, I'd happily test it and supply logs and such.

@pliablepixels
Copy link
Member

confirmed - doesn't work in Android 10

@pliablepixels
Copy link
Member

I have a beta version to test (an apk you'll have to download from my google drive, likely have to delete the one you have installed one), if you'd like to test. Works in my emulator. If you want to test please send me an email. pliablepixels gmail.

@TheOneOgre
Copy link
Author

Okay awesome. Downloading now works properly. The only issue is, after "progress 14%" the progress disappears, and doesn't redisplay anything until you exit the event screen. Also double tapping or pressing the back button does not leave the event screen, it requires pressing the red menu circle in the top right, then selecting "exit event view" to escape. After escaping, a pop-up "progress 100%" shows, and then the events refresh.

It works, albeit seems to be a bit clunky now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants