ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder

Home Page:http://zmninja.zoneminder.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot download videos - zmNinja Android 10 - OnePlus 6

TheOneOgre opened this issue · comments

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```

👋 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.

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?

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

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.

confirmed - doesn't work in Android 10

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.

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!