ZMninja - Video is not playable on Events

Discussion topics related to mobile applications for ZoneMinder
ndz
Posts: 6
Joined: Mon Jun 04, 2018 6:35 pm

Re: ZMninja - Video is not playable on Events

Post by ndz » Wed Jan 23, 2019 6:52 pm

Changing AUTH_RELAY to hashed fixed ZMNinja event playback for me. Thanks.

TihsHead
Posts: 6
Joined: Fri Dec 28, 2018 2:47 pm

Re: ZMninja - Video is not playable on Events

Post by TihsHead » Mon Feb 25, 2019 12:49 pm

Awesome. That fixed my issue also. Thanks

marcschh2
Posts: 4
Joined: Tue Sep 03, 2019 7:45 am

Re: ZMninja - Video is not playable on Events

Post by marcschh2 » Tue Sep 03, 2019 8:09 am

Changing AUTH_RELAY set to hashed and AUTH_HASH_LOGIN set to on did not fixed this issue on my site.
I am using an HTTPS connection with basic auth and zoneminder-builtin auth on a non HTPS standard Port.
Event Montage/List Events/24hr review is not working.
Temporary I disable the basic auth without success.

Code: Select all

Sep 3, 2019 09:41:17 AM INFO Force calling resize 
Sep 3, 2019 09:41:16 AM DEBUG *** Invoking play 
Sep 3, 2019 09:41:16 AM DEBUG *** Invoking play 
Sep 3, 2019 09:41:16 AM DEBUG *** Invoking play 
Sep 3, 2019 09:41:16 AM DEBUG player reported a video error:{"isTrusted":true} 
Sep 3, 2019 09:41:16 AM DEBUG player reported a video error:{"isTrusted":true} 
Sep 3, 2019 09:41:16 AM DEBUG player reported a video error:{"isTrusted":true} 
Sep 3, 2019 09:41:16 AM INFO *** PROGRESS WAS NOT CALLED 
Sep 3, 2019 09:41:16 AM DEBUG All images loaded 
Sep 3, 2019 09:41:16 AM DEBUG Re-creating packery and draggy 
Sep 3, 2019 09:41:15 AM DEBUG Player is ready 
Sep 3, 2019 09:41:15 AM DEBUG On Play Ready invoked 
Sep 3, 2019 09:41:15 AM DEBUG Player is ready 
Sep 3, 2019 09:41:15 AM DEBUG On Play Ready invoked
Zoneminder: 1.32.3
ZmNinja tried in differnet version started from 1.3.11 up to 1.3.078

calling the API Urls via browsers is working fine and as expected.
Attachments
Screenshot_20190903-094127_zmNinja.png
Screenshot_20190903-094127_zmNinja.png (158.98 KiB) Viewed 494 times
Screenshot_20190903-100439_Trebuchet.png
Screenshot_20190903-100439_Trebuchet.png (123.63 KiB) Viewed 494 times

User avatar
asker
Posts: 1079
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMninja - Video is not playable on Events

Post by asker » Tue Sep 03, 2019 12:57 pm

Videos not playing are not related to APIs. Your logs seem to indicate there is a playback error.

1. Are you able to play the videos on your mobile browser? (Log into ZM Web Console from your phone)
2. Please send full Debug logs from the mobile when trying to play (please don't truncate)
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

marcschh2
Posts: 4
Joined: Tue Sep 03, 2019 7:45 am

Re: ZMninja - Video is not playable on Events

Post by marcschh2 » Thu Sep 05, 2019 9:10 am

1. yes. it is working like a charme on my phone via firefox/chrome/aosp browser
2.

*** Before you send the logs, please make sure you remove any sensitive information. zmNinja tries to filter out passwords, but it is possible that passwords will be included if you include them in URLs, for example ***

zmNinja version:1.3.078 (android)
ZoneMinder version:1.32.3

zmNinjaLog.txt

2019-09-05T09:05:55.830Z INFO ******* app .run device ready
Sep 5, 2019 11:05:55 AM INFO Device is ready
Sep 5, 2019 11:05:55 AM INFO You are running on android
Sep 5, 2019 11:05:55 AM DEBUG Inside configureStorageDB
Sep 5, 2019 11:05:55 AM DEBUG configureStorageDB: trying order:["asyncStorage","localStorageWrapper"]
Sep 5, 2019 11:05:55 AM INFO configureStorageDB:localforage driver for storage:asyncStorage
Sep 5, 2019 11:05:55 AM DEBUG configureStorageDB:Making sure this storage driver works...
Sep 5, 2019 11:05:56 AM DEBUG configureStorageDB:test get/set worked, this driver is ok...
Sep 5, 2019 11:05:56 AM INFO localforage driver:asyncStorage
Sep 5, 2019 11:05:56 AM INFO CloudSync: Syncing with cloud if enabled...
Sep 5, 2019 11:05:56 AM INFO user profile encrypted, decoding...
Sep 5, 2019 11:05:56 AM INFO Cloud sync is disabled, exiting...
Sep 5, 2019 11:05:56 AM INFO Cloudsync operation complete, continuing...
Sep 5, 2019 11:05:56 AM INFO >>>>No data to import....
Sep 5, 2019 11:05:56 AM INFO Updating statusbar
Sep 5, 2019 11:05:56 AM INFO Retrieving language before init is called...
Sep 5, 2019 11:05:56 AM INFO App Version: 1.3.078
Sep 5, 2019 11:05:56 AM INFO Language stored as:en
Sep 5, 2019 11:05:56 AM INFO Device Language is:en
Sep 5, 2019 11:05:56 AM INFO >>>>Language to be used:en
Sep 5, 2019 11:05:56 AM DEBUG isFirstUse returned: false
Sep 5, 2019 11:05:56 AM DEBUG last state=app.moment param=[object Object]
Sep 5, 2019 11:05:56 AM INFO Language file loaded, continuing with rest
Sep 5, 2019 11:05:56 AM INFO ZMData init: checking for stored variables & setting up log file
Sep 5, 2019 11:05:56 AM INFO Checking for new version updates...
Sep 5, 2019 11:05:56 AM INFO Checking for news updates
Sep 5, 2019 11:05:56 AM INFO Setting up pause and resume handler AFTER language is loaded...
Sep 5, 2019 11:05:56 AM DEBUG Android detected, using cordova-multiwindow plugin for onStop/onStart instead
Sep 5, 2019 11:05:56 AM INFO user profile encrypted, decoding...
Sep 5, 2019 11:05:56 AM DEBUG Basic authentication detected, constructing Authorization Header
Sep 5, 2019 11:05:56 AM INFO Setting NVR init bandwidth to: highbw
Sep 5, 2019 11:05:56 AM INFO NVR init retrieved store loginData
Sep 5, 2019 11:05:56 AM DEBUG Cordova HTTP: configuring basic auth
Sep 5, 2019 11:05:56 AM INFO >>>> Disabling strict SSL checking (turn off in Dev Options if you can't connect)
Sep 5, 2019 11:05:56 AM INFO >>> Android: enabling inline image view for self signed certs
Sep 5, 2019 11:05:56 AM INFO Inside init-complete in app.js: All init over, going to portal login
Sep 5, 2019 11:05:56 AM DEBUG --> SSL is permissive, will allow any certs. Use at your own risk.
Sep 5, 2019 11:05:56 AM INFO Entering Portal Main
Sep 5, 2019 11:05:56 AM DEBUG *** Inside native HTTP error for url:https://medium.com/zmninja/latest?format=json
Sep 5, 2019 11:05:57 AM DEBUG Inside Portal login Enter handler
Sep 5, 2019 11:05:57 AM INFO User credentials are provided
Sep 5, 2019 11:05:57 AM INFO not checking for touchID
Sep 5, 2019 11:05:57 AM DEBUG unlock called with check PIN=true
Sep 5, 2019 11:05:57 AM DEBUG PIN code entered is correct, or there is no PIN set
Sep 5, 2019 11:05:57 AM INFO Cancelling zmAutologin timer
Sep 5, 2019 11:05:57 AM DEBUG We will relogin every 1800 seconds, token supported=false
Sep 5, 2019 11:05:57 AM DEBUG _doLogoutAndLogin: Clearing cookies
Sep 5, 2019 11:05:57 AM INFO Adding to chain stack: zoneminder-schuetz.goip.de:55443>https://zoneminder-schuetz.goip.de:55443/zm
Sep 5, 2019 11:05:57 AM INFO Fallback of zoneminder-schuetz.goip.de:55443 is
Sep 5, 2019 11:05:57 AM INFO reached end of chain loop
Sep 5, 2019 11:05:57 AM INFO No need to do a reachability test, as there are no fallbacks
Sep 5, 2019 11:05:57 AM INFO https://zoneminder-schuetz.goip.de:55443/zm=>Logging out of any existing ZM sessions...
Sep 5, 2019 11:05:57 AM DEBUG Logging out using API method
Sep 5, 2019 11:05:57 AM DEBUG current version: 1.3.078 & available version 1.3.078
Sep 5, 2019 11:05:57 AM DEBUG Logout returned...
Sep 5, 2019 11:05:57 AM DEBUG Inside _doLogin()
Sep 5, 2019 11:05:57 AM INFO Checking if reCaptcha is enabled in ZM...
Sep 5, 2019 11:05:57 AM DEBUG Resetting zmCookie...
Sep 5, 2019 11:05:57 AM INFO Token login not being used
Sep 5, 2019 11:05:57 AM INFO Doing fresh login to ZM
Sep 5, 2019 11:05:57 AM DEBUG API based login returned.
Sep 5, 2019 11:05:57 AM DEBUG Setting server version to:1.32.3
Sep 5, 2019 11:05:57 AM INFO Could not recover token details, trying old auth credentials
Sep 5, 2019 11:05:57 AM INFO Stream authentication construction: &auth=<removed>
Sep 5, 2019 11:05:57 AM INFO Successfully logged into Zoneminder via API
Sep 5, 2019 11:05:57 AM DEBUG auth-success broadcast:Successful
Sep 5, 2019 11:05:57 AM DEBUG PortalLogin: auth success
Sep 5, 2019 11:05:57 AM DEBUG getAPIversion called with https://zoneminder-schuetz.goip.de:5544 ... h=<removed>
Sep 5, 2019 11:05:57 AM INFO ZM has recaptcha disabled - good
Sep 5, 2019 11:05:58 AM DEBUG snapshot supported in image.php
Sep 5, 2019 11:05:58 AM DEBUG Setting server version to:1.32.3
Sep 5, 2019 11:05:58 AM DEBUG getAPI version succeeded with 1.32.3
Sep 5, 2019 11:05:58 AM INFO Got API version: 1.32.3
Sep 5, 2019 11:05:58 AM INFO First invocation of TimeZone, asking server
Sep 5, 2019 11:05:58 AM INFO EventSever: No Event Server present. Not initializing
Sep 5, 2019 11:05:58 AM DEBUG Transitioning state to: app.moment with param {}
Sep 5, 2019 11:05:58 AM INFO getMonitors:Loading all monitors
Sep 5, 2019 11:05:58 AM INFO Checking value of ZM_MIN_STREAMING_PORT for the first time
Sep 5, 2019 11:05:58 AM DEBUG Timezone API response is:Europe/Berlin
Sep 5, 2019 11:05:58 AM INFO ZM_EVENT_IMAGE_DIGITS is 5
Sep 5, 2019 11:05:58 AM DEBUG Real value of PRIVACY is:0
Sep 5, 2019 11:05:58 AM DEBUG Setting multi-port to:false
Sep 5, 2019 11:05:58 AM INFO ZM_MIN_STREAMING_PORT not configured, disabling
Sep 5, 2019 11:05:58 AM DEBUG ZMS Multiport reported: 0
Sep 5, 2019 11:05:58 AM DEBUG Monitor URL to fetch is:https://zoneminder-schuetz.goip.de:5544 ... index/Type !=:WebSite.json?&auth=<removed>
Sep 5, 2019 11:05:58 AM INFO --------->Setting up network state handlers....
Sep 5, 2019 11:05:58 AM INFO --------->Setting up global key handler...
Sep 5, 2019 11:05:58 AM DEBUG Loading hidden/unhidden status for profile:
Sep 5, 2019 11:05:58 AM DEBUG Inside getMonitors, will also regen connkeys
Sep 5, 2019 11:05:58 AM DEBUG Now trying to get multi-server data, if present
Sep 5, 2019 11:05:58 AM INFO Monitor load was successful, loaded 5 monitors
Sep 5, 2019 11:05:59 AM INFO multi server list loaded
Sep 5, 2019 11:05:59 AM DEBUG Portal scheme is https, will use https for any multi-server without a protocol
Sep 5, 2019 11:05:59 AM DEBUG default multi-server protocol will be:https://
Sep 5, 2019 11:05:59 AM DEBUG recording server reported is {"scheme":"https","host":"zoneminder-schuetz.goip.de","path":"","reference":"absolute"}
Sep 5, 2019 11:05:59 AM DEBUG multi-port is:0
Sep 5, 2019 11:05:59 AM DEBUG Found port inside multiserver: 1, using: 55443
Sep 5, 2019 11:05:59 AM DEBUG Storing baseurl=https://zoneminder-schuetz.goip.de:55443 streamingURL=https://zoneminder-schuetz.goip.de:55443/zm/cgi-bin recordingURL=https://zoneminder-schuetz.goip.de:55443/zm
Sep 5, 2019 11:05:59 AM DEBUG No servers matched, filling defaults...
Sep 5, 2019 11:05:59 AM DEBUG Storing streaming=https://zoneminder-schuetz.goip.de:55443/zm/cgi-bin recording=https://zoneminder-schuetz.goip.de:55443/zm
Sep 5, 2019 11:05:59 AM DEBUG No servers matched, filling defaults...
Sep 5, 2019 11:05:59 AM DEBUG Storing streaming=https://zoneminder-schuetz.goip.de:55443/zm/cgi-bin recording=https://zoneminder-schuetz.goip.de:55443/zm
Sep 5, 2019 11:05:59 AM DEBUG recording server reported is {"scheme":"https","host":"zoneminder-schuetz.goip.de","path":"","reference":"absolute"}
Sep 5, 2019 11:05:59 AM DEBUG multi-port is:0
Sep 5, 2019 11:05:59 AM DEBUG Found port inside multiserver: 1, using: 55443
Sep 5, 2019 11:05:59 AM DEBUG Storing baseurl=https://zoneminder-schuetz.goip.de:55443 streamingURL=https://zoneminder-schuetz.goip.de:55443/zm/cgi-bin recordingURL=https://zoneminder-schuetz.goip.de:55443/zm
Sep 5, 2019 11:05:59 AM DEBUG No servers matched, filling defaults...
Sep 5, 2019 11:05:59 AM DEBUG Storing streaming=https://zoneminder-schuetz.goip.de:55443/zm/cgi-bin recording=https://zoneminder-schuetz.goip.de:55443/zm
Sep 5, 2019 11:05:59 AM DEBUG Loading hidden/unhidden status for profile:
Sep 5, 2019 11:05:59 AM DEBUG Constructed Monitor Filter =/MonitorId !=:3/MonitorId !=:5
Sep 5, 2019 11:05:59 AM DEBUG Moments from 2019-09-04 11:05:59 to 2019-09-05 11:05:59
Sep 5, 2019 11:05:59 AM DEBUG Retrieving https://zoneminder-schuetz.goip.de:5544 ... larmFrames >=:1/MonitorId !=:3/MonitorId !=:5/StartTime <=:2019-09-05 11:05:59/EndTime >=:2019-09-04 11:05:59.json?sort=StartTime&direction=desc&auth=<removed>
Sep 5, 2019 11:05:59 AM DEBUG --------> attempting PAGE 1 of 3
Sep 5, 2019 11:05:59 AM DEBUG Expanding all images
Sep 5, 2019 11:05:59 AM DEBUG --------> attempting PAGE 2 of 3
Sep 5, 2019 11:06:00 AM DEBUG Expanding all images
Sep 5, 2019 11:06:00 AM DEBUG --------> attempting PAGE 3 of 3
Sep 5, 2019 11:06:00 AM DEBUG Expanding all images
Sep 5, 2019 11:06:00 AM DEBUG *** Inside native HTTP error for url:https://zoneminder-schuetz.goip.de:5544 ... ed>&page=4
Sep 5, 2019 11:06:00 AM DEBUG $q.all Parallel queries completed
Sep 5, 2019 11:06:21 AM DEBUG All images loaded
Sep 5, 2019 11:06:21 AM INFO *** PROGRESS WAS NOT CALLED
Sep 5, 2019 11:06:42 AM INFO Returning pre-loaded list of 5 monitors
Sep 5, 2019 11:06:42 AM DEBUG NVR: Regenerating connkeys for all monitors at 1567674402537
Sep 5, 2019 11:06:42 AM DEBUG >>Initializing connkeys and images...
Sep 5, 2019 11:06:42 AM INFO Inside MontageHistoryCtrl:We found 5 monitors
Sep 5, 2019 11:06:42 AM INFO Limiting montage to 5, thanks to max connection per domain limit
Sep 5, 2019 11:06:42 AM DEBUG Destroying masonry
Sep 5, 2019 11:06:44 AM DEBUG Inside footerCollapse
Sep 5, 2019 11:06:44 AM DEBUG fake call to footerCollapse - ignoring
Sep 5, 2019 11:06:45 AM DEBUG Calling footerCollapse from doInit
Sep 5, 2019 11:06:45 AM DEBUG Inside footerCollapse
Sep 5, 2019 11:06:45 AM INFO Local timezone conversion is on, converting from Europe/Berlin to Europe/Berlin
Sep 5, 2019 11:06:45 AM INFO Original From: 2019-09-05 00:00 Original To: 2019-09-05 11:06
Sep 5, 2019 11:06:45 AM INFO Converted From: 2019-09-05 00:00 Converted To: 2019-09-05 11:06
Sep 5, 2019 11:06:45 AM DEBUG **VIEW ** MontageHistory Ctrl Entered
Sep 5, 2019 11:06:45 AM DEBUG query timer started
Sep 5, 2019 11:06:45 AM DEBUG Killing existing streams, if alive...
Sep 5, 2019 11:06:45 AM DEBUG >>Initializing monitor array with history specific stuff...
Sep 5, 2019 11:06:45 AM INFO Grabbing history using: https://zoneminder-schuetz.goip.de:5544 ... /StartTime >=:2019-09-05 00:00/AlarmFrames >=:1.json?sort=StartTime&direction=asc&auth=<removed>
Sep 5, 2019 11:06:46 AM DEBUG Got 100new history events...
Sep 5, 2019 11:06:46 AM INFO Making sure all monitors have a fair chance...
Sep 5, 2019 11:06:46 AM DEBUG Monitor 3:Hauseingang-Innen does not have events, trying https://zoneminder-schuetz.goip.de:5544 ... /StartTime >=:2019-09-05 00:00/AlarmFrames >=:1.json?&auth=<removed>
Sep 5, 2019 11:06:46 AM DEBUG Monitor 5:Huehnerstall-1 does not have events, trying https://zoneminder-schuetz.goip.de:5544 ... /StartTime >=:2019-09-05 00:00/AlarmFrames >=:1.json?&auth=<removed>
Sep 5, 2019 11:06:46 AM DEBUG On Play Ready invoked
Sep 5, 2019 11:06:46 AM DEBUG Player is ready
Sep 5, 2019 11:06:46 AM DEBUG On Play Ready invoked
Sep 5, 2019 11:06:46 AM DEBUG Player is ready
Sep 5, 2019 11:06:46 AM DEBUG On Play Ready invoked
Sep 5, 2019 11:06:46 AM DEBUG Player is ready
Sep 5, 2019 11:06:46 AM DEBUG Re-creating packery and draggy
Sep 5, 2019 11:06:46 AM DEBUG All images loaded
Sep 5, 2019 11:06:46 AM INFO *** PROGRESS WAS NOT CALLED
Sep 5, 2019 11:06:47 AM DEBUG player reported a video error:{"isTrusted":true}
Sep 5, 2019 11:06:47 AM DEBUG player reported a video error:{"isTrusted":true}
Sep 5, 2019 11:06:47 AM DEBUG player reported a video error:{"isTrusted":true}
Sep 5, 2019 11:06:47 AM DEBUG *** Invoking play
Sep 5, 2019 11:06:47 AM DEBUG *** Invoking play
Sep 5, 2019 11:06:47 AM DEBUG *** Invoking play
Sep 5, 2019 11:06:48 AM INFO Force calling resize
Sep 5, 2019 11:07:17 AM INFO Cancelling event query timer
Sep 5, 2019 11:07:17 AM DEBUG Killing all streams in montage to save memory/nw...
Sep 5, 2019 11:07:17 AM DEBUG NVR: killing Hauseingang live stream ck:860880
Sep 5, 2019 11:07:17 AM DEBUG NVR: killing Garage live stream ck:612234
Sep 5, 2019 11:07:17 AM DEBUG NVR: killing GarageZM live stream ck:987127
Sep 5, 2019 11:07:17 AM DEBUG Cancelling eventQueryInterval
Sep 5, 2019 11:07:17 AM DEBUG player reported a video error:{"isTrusted":true}
Sep 5, 2019 11:07:17 AM DEBUG player reported a video error:{"isTrusted":true}
Sep 5, 2019 11:07:17 AM DEBUG player reported a video error:{"isTrusted":true}
Sep 5, 2019 11:07:25 AM INFO file location:file:///data/user/0/com.pliablepixels.zmninja_pro/files/zmNinjaLog.txt
Sep 5, 2019 11:07:25 AM DEBUG MontageHistoryCtrl: onpause called
Sep 5, 2019 11:07:25 AM DEBUG Montage History View Cleanup was already done, skipping

User avatar
asker
Posts: 1079
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMninja - Video is not playable on Events

Post by asker » Thu Sep 05, 2019 12:45 pm

Seems like for some reason the video is not playable inside the app (which uses Chrome).
Is it possible for me to get a test account with your system? If so, please email to pliablepixels@gmail
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

marcschh2
Posts: 4
Joined: Tue Sep 03, 2019 7:45 am

Re: ZMninja - Video is not playable on Events

Post by marcschh2 » Fri Sep 06, 2019 4:55 am

I am using lineagoes for microg which has no chrome. And I do not wanna get chrome.
any alternative?

marcschh2
Posts: 4
Joined: Tue Sep 03, 2019 7:45 am

Re: ZMninja - Video is not playable on Events

Post by marcschh2 » Fri Sep 06, 2019 5:25 am

by the way. I tried to install chrome which is not possible due to the absence of all the google framework.
So from my point of view a fallback inside the app to use aosp browser instead (or webview - which my be the same?) would be good.

alternative an option to choose the used browser by the user. (fennec is also an common used browser on FOSS phones)

User avatar
asker
Posts: 1079
Joined: Sun Mar 01, 2015 12:12 pm

Re: ZMninja - Video is not playable on Events

Post by asker » Fri Sep 06, 2019 12:15 pm

Based on the email you sent, Basic Auth needs special handling.
https://zmninja.readthedocs.io/en/lates ... basic-auth

It is not possible for the user to choose a browser. The app uses a web view, and the system uses whichever web view is configured. Usually this is Chrome in Android phones. Based on what I read, the default web view is Chromium (https://developer.chrome.com/multidevic ... w/overview) - not sure if your phone is different.
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests