ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder
http://zmninja.zoneminder.com
Other
1.02k stars 270 forks source link

Image review via progress slider fails to navigate. #768

Closed generalredneck closed 5 years ago

generalredneck commented 5 years ago

Platform & OS Version

Android 8.0.0

The version of zmNinja you are reporting:

1.3.039

The version of ZoneMinder you are using:

1.32.3

Device details:

Samsung Galaxy 8 (more info on demand)

What is the nature of your issue

Bug

Details

When using zmNinja for Android, I cannot navigate through jpegs like I can on the electron version for linux. When I try to move via the progress bar, it goes back to 1x @ 0s and the "video" stops. Obviously I don't have this problem when I have x246 encoding turned on in zoneminder, but I wanted to save the processing power as my machine recording is low powered and the chickens alarm the thing all the time (it's not like my foscams have sound capabilities :P) I suspect this is a touch vs click event thing... Any case... (sorry about no touch indications) here's a gif of me on my phone. ezgif com-video-to-gif Here's a gif of me on my laptop peek 2019-01-01 09-08

Debug Logs (if applicable)

Jan 1, 2019 09:22:59 AM DEBUG Modal removed - killing connkey
Jan 1, 2019 09:22:59 AM DEBUG Setting up carousel watchers
Jan 1, 2019 09:22:59 AM DEBUG Rebinding watchers of eventCtrl
Jan 1, 2019 09:22:59 AM DEBUG >>>EventCtrl:Close & Destroy Modal
Jan 1, 2019 09:22:42 AM DEBUG Hmm I found an error {"result":"Error","message":"Socket /var/run/zm/zms-192792s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information."}
Jan 1, 2019 09:22:40 AM DEBUG Hmm I found an error {"result":"Error","message":"Socket /var/run/zm/zms-192792s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information."}
Jan 1, 2019 09:22:38 AM DEBUG Hmm I found an error {"result":"Error","message":"Socket /var/run/zm/zms-192792s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information."}
Jan 1, 2019 09:22:36 AM INFO >>>Starting checkAllEvents interval...
Jan 1, 2019 09:22:35 AM DEBUG neighbors of 678are pre=677 next=680
Jan 1, 2019 09:22:34 AM DEBUG Video url passed to player is: http://192.168.1.nyb/zm/index.php?view=view_video&eid=678
Jan 1, 2019 09:22:34 AM DEBUG Neighbor pre URL=http://192.168.1.nyb/zm/api/events/index/StartTime <: 2019-01-01 08:16:14/MonitorId =: 5/AlarmFrames >=: 1.json?sort=StartTime&direction=desc&limit=1
Jan 1, 2019 09:22:34 AM DEBUG Neighbor next URL=http://192.168.1.nyb/zm/api/events/index/StartTime >: 2019-01-01 08:16:14/MonitorId =: 5/AlarmFrames >=: 1.json?sort=StartTime&direction=asc&limit=1
Jan 1, 2019 09:22:33 AM INFO *** Constructed API for detailed events: http://192.168.1.nyb/zm/api/events/678.json
Jan 1, 2019 09:22:33 AM DEBUG Generated Connkey:207687
Jan 1, 2019 09:22:33 AM DEBUG If recording is in progress, live feed will be shown
Jan 1, 2019 09:22:33 AM DEBUG Setting playback to undefined
Jan 1, 2019 09:22:33 AM DEBUG EventModalCtrl called from app.events
Jan 1, 2019 09:22:33 AM INFO Using stream mode single
Jan 1, 2019 09:22:33 AM DEBUG unbinding eventCtrl watchers as modal has its own
Jan 1, 2019 09:22:17 AM DEBUG EventCtrl: success, got 61 events
Jan 1, 2019 09:22:17 AM DEBUG We have a total of 1 and are at page=1
Jan 1, 2019 09:22:17 AM DEBUG Setting up carousel watchers
Jan 1, 2019 09:22:17 AM DEBUG getEvents:http://192.168.1.nyb/zm/api/events/index/MonitorId:5/AlarmFrames >=:1.json?&sort=StartTime&direction=desc&page=1
Jan 1, 2019 09:22:17 AM DEBUG EventCtrl: grabbing events for: id=5 Date/Time:-
Jan 1, 2019 09:22:17 AM DEBUG EventCtrl: grabbing # of event pages
Jan 1, 2019 09:22:17 AM DEBUG getInitialEvents called
Jan 1, 2019 09:22:17 AM DEBUG Not sending WSS message as event server is off
Jan 1, 2019 09:22:16 AM INFO Image padding digits reported as 5
Jan 1, 2019 09:22:16 AM DEBUG >>>height of list/scrub set to 330 and 370
Jan 1, 2019 09:22:16 AM INFO EventCtrl called with: E/MID=5 playEvent =  false
Jan 1, 2019 09:22:16 AM INFO Returning pre-loaded list of 5 monitors
Jan 1, 2019 09:22:10 AM DEBUG reporting status of monitors from multi-server API
Jan 1, 2019 09:22:10 AM DEBUG Loading hidden/unhidden status for profile:
Jan 1, 2019 09:22:10 AM DEBUG Storing streaming=http://192.168.1.nyb/zm/cgi-bin recording=http://192.168.1.nyb/zm
Jan 1, 2019 09:22:10 AM DEBUG No servers matched, filling defaults...
Jan 1, 2019 09:22:10 AM DEBUG Storing streaming=http://192.168.1.nyb/zm/cgi-bin recording=http://192.168.1.nyb/zm
Jan 1, 2019 09:22:10 AM DEBUG No servers matched, filling defaults...
Jan 1, 2019 09:22:10 AM DEBUG Storing streaming=http://192.168.1.nyb/zm/cgi-bin recording=http://192.168.1.nyb/zm
Jan 1, 2019 09:22:10 AM DEBUG No servers matched, filling defaults...
Jan 1, 2019 09:22:10 AM DEBUG Storing streaming=http://192.168.1.nyb/zm/cgi-bin recording=http://192.168.1.nyb/zm
Jan 1, 2019 09:22:10 AM DEBUG No servers matched, filling defaults...
Jan 1, 2019 09:22:10 AM DEBUG Storing streaming=http://192.168.1.nyb/zm/cgi-bin recording=http://192.168.1.nyb/zm
Jan 1, 2019 09:22:10 AM DEBUG No servers matched, filling defaults...
Jan 1, 2019 09:22:10 AM DEBUG multi-server protocol will be:http://
Jan 1, 2019 09:22:10 AM INFO multi server list loaded:{"servers":[]}
Jan 1, 2019 09:22:10 AM INFO Monitor load was successful, loaded 5 monitors
Jan 1, 2019 09:22:10 AM DEBUG Now trying to get multi-server data, if present
Jan 1, 2019 09:22:10 AM DEBUG Inside getMonitors, will also regen connkeys
Jan 1, 2019 09:22:10 AM DEBUG Loading hidden/unhidden status for profile:
Jan 1, 2019 09:22:10 AM DEBUG Monitor URL to fetch is:http://192.168.1.nyb/zm/api/monitors/index/Type !=:WebSite.json
Jan 1, 2019 09:22:10 AM DEBUG ZMS Multiport reported: 0
Jan 1, 2019 09:22:10 AM INFO ZM_MIN_STREAMING_PORT not configure, disabling
Jan 1, 2019 09:22:10 AM DEBUG Setting multi-port to:false
Jan 1, 2019 09:22:10 AM INFO Checking value of ZM_MIN_STREAMING_PORT for the first time
Jan 1, 2019 09:22:10 AM INFO getMonitors:Force reloading all monitors
Jan 1, 2019 09:22:10 AM DEBUG Monitor Control afterEnter
Jan 1, 2019 09:22:07 AM INFO --------->Setting up network state handlers....
Jan 1, 2019 09:22:05 AM DEBUG Real value of PRIVACY is:0
Jan 1, 2019 09:22:05 AM INFO ZM_EVENT_IMAGE_DIGITS is 5
Jan 1, 2019 09:22:05 AM DEBUG Timezone API response is:America/Chicago
Jan 1, 2019 09:22:05 AM DEBUG Transitioning state to: app.help with param {}
Jan 1, 2019 09:22:05 AM INFO No Event Server present. Not initializing
Jan 1, 2019 09:22:05 AM INFO First invocation of TimeZone, asking server
Jan 1, 2019 09:22:05 AM INFO Got API version: 1.32.3
Jan 1, 2019 09:22:05 AM DEBUG getAPI version succeeded with 1.32.3
Jan 1, 2019 09:22:05 AM DEBUG Setting server version to:1.32.3
Jan 1, 2019 09:22:05 AM DEBUG snapshot  supported in image.php
Jan 1, 2019 09:22:05 AM DEBUG getAPIversion called with http://192.168.1.nyb/zm/api/host/getVersion.json
Jan 1, 2019 09:22:05 AM DEBUG PortalLogin: auth success
Jan 1, 2019 09:22:05 AM DEBUG auth-success broadcast:Successful
Jan 1, 2019 09:22:05 AM INFO Auth is disabled, setting authSession to empty
Jan 1, 2019 09:22:05 AM INFO zmAutologin called
Jan 1, 2019 09:22:05 AM DEBUG Resetting zmCookie...
Jan 1, 2019 09:22:05 AM DEBUG Logout returned... 
Jan 1, 2019 09:22:04 AM DEBUG Logging out using API method
Jan 1, 2019 09:22:04 AM INFO http://192.168.1.nyb/zm=>Logging out of any existing ZM sessions...
Jan 1, 2019 09:22:04 AM DEBUG Clearing cookies
Jan 1, 2019 09:22:04 AM INFO Cancelling zmAutologin timer
Jan 1, 2019 09:22:04 AM DEBUG PIN code entered is correct, or there is no PIN set
Jan 1, 2019 09:22:04 AM DEBUG unlock called with check PIN=true
Jan 1, 2019 09:22:04 AM INFO not checking for touchID
Jan 1, 2019 09:22:04 AM INFO User credentials are provided
Jan 1, 2019 09:22:04 AM DEBUG Inside Portal login Enter handler
Jan 1, 2019 09:22:04 AM DEBUG current version: 1.3.039 & available version 1.3.039
Jan 1, 2019 09:22:04 AM DEBUG Latest post dated 2018-10-11 09:32:22 but you read 2018-10-11 09:32:22
Jan 1, 2019 09:22:04 AM INFO Entering Portal Main
Jan 1, 2019 09:22:04 AM DEBUG --> SSL is permissive, will allow any certs. Use at your own risk.
Jan 1, 2019 09:22:04 AM INFO Inside init-complete in app.js: All init over, going to portal login
Jan 1, 2019 09:22:04 AM INFO >>> Android: enabling inline image view for self signed certs
Jan 1, 2019 09:22:04 AM INFO >>>> Disabling strict SSL checking (turn off  in Dev Options if you can't connect)
Jan 1, 2019 09:22:04 AM INFO DataModel init retrieved store loginData
Jan 1, 2019 09:22:04 AM INFO Setting DataModel init bandwidth to: highbw
Jan 1, 2019 09:22:04 AM DEBUG timeline graph type not set. Setting to all
Jan 1, 2019 09:22:04 AM INFO user profile encrypted, decoding...
Jan 1, 2019 09:22:04 AM DEBUG Android detected, using cordova-multiwindow plugin for onStop/onStart instead
Jan 1, 2019 09:22:04 AM INFO Setting up pause and resume handler AFTER language is loaded...
Jan 1, 2019 09:22:04 AM INFO Setting up POST LOGIN timer
Jan 1, 2019 09:22:04 AM INFO Checking for news updates
Jan 1, 2019 09:22:04 AM INFO Checking for new version updates...
Jan 1, 2019 09:22:04 AM INFO ZMData init: checking for stored variables & setting up log file
Jan 1, 2019 09:22:04 AM INFO Language file loaded, continuing with rest
Jan 1, 2019 09:22:04 AM DEBUG last state=app.help param=[object Object]
Jan 1, 2019 09:22:04 AM DEBUG isFirstUse returned: false
Jan 1, 2019 09:22:04 AM INFO >>>>Language to be used:en
Jan 1, 2019 09:22:04 AM INFO Device Language is:en
Jan 1, 2019 09:22:04 AM INFO No language set, switching to en
Jan 1, 2019 09:22:04 AM INFO App Version: 1.3.039
Jan 1, 2019 09:22:04 AM INFO Retrieving language before init is called...
Jan 1, 2019 09:22:04 AM INFO Updating statusbar
Jan 1, 2019 09:22:04 AM INFO >>>>No data to import....
Jan 1, 2019 09:22:04 AM INFO Cloudsync operation complete, continuing...
Jan 1, 2019 09:22:04 AM INFO local data synced with cloud...
Jan 1, 2019 09:22:04 AM INFO Found valid local configuration, overwriting cloud settings...
Jan 1, 2019 09:22:04 AM INFO user profile encrypted, decoding...
Jan 1, 2019 09:22:04 AM INFO CloudSync: Syncing with cloud if enabled...
Jan 1, 2019 09:22:04 AM INFO localforage driver:asyncStorage
Jan 1, 2019 09:22:04 AM DEBUG configureStorageDB:test get/set worked, this driver is ok...
Jan 1, 2019 09:22:04 AM DEBUG configureStorageDB:Making sure this storage driver works...
Jan 1, 2019 09:22:04 AM INFO configureStorageDB:localforage driver for storage:asyncStorage
Jan 1, 2019 09:22:04 AM DEBUG configureStorageDB: trying order:["asyncStorage","localStorageWrapper"]
Jan 1, 2019 09:22:04 AM DEBUG Inside configureStorageDB
Jan 1, 2019 09:22:04 AM INFO You are running on android
Jan 1, 2019 09:22:04 AM INFO Device is ready
2019-01-01T15:22:04.099Z INFO ******* app .run device ready
welcome[bot] commented 5 years ago

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

pliablepixels commented 5 years ago

Thanks for the report - I've seen the same thing but did not investigate as I've moved away from JPEGs - I'll convert one to jpeg and test.

pliablepixels commented 5 years ago

@generalredneck I have an android debug build to test (you will need to delete the existing app). If you are able to test, can you please shoot me an email to pliable pixels at gmail?

generalredneck commented 5 years ago

After testing the dev build we are good to go👍

generalredneck commented 5 years ago

Probably should double check the desktop version and make sure there aren't regressions with it.