ZoneMinder / zmNinja

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

ZMNinja on Android no live video, working perfect on Windows #1133

Open SubMaxSubRose opened 3 weeks ago

SubMaxSubRose commented 3 weeks ago

The version of zmNinja you are reporting:

1.7.006

The version and OS of ZoneMinder you are using:

1.36.33, Debian 12 

Platform zmNinja is running on

Poco X5 Pro 5g, Android 14

Did you build the package from source code yourself? N

Describe the bug Cant watch live video on ZMNinja on android. Montage shows black screen with three green dots, events are displayed with no still image (and cant watch the video inside), Can see the status of the zoneminder machine fine and the timeline is populated with the events, but I can't watch the content of any of them. I tried checking the cgi-bin address from the web console on a pc and it was the same as the android app (serverip/zm/cgi-bin), also tried turning on "Force MJPEG even playback" but it didn't fix the issue. The Monitor section shows all the cameras with a green check, but if I click "Live View", no video playback just a black screen.

I tested ZMNinja on windows and it works absolutely perfect, can watch live video, video from events, etc. everything works. I checked the settings to tried to match the android app settings, but its exactly the same. But android app shows no video.

If I open the zm web console on the android phone, I can watch video and everything works. The problem is only on the ZMNinja Android app.

Debug logs ZMNinja android logs (cleared the logs and then open the Montage section)

Apr 21, 2024 12:18:42:060 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:42:054 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:42:048 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:40:061 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:40:056 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:40:048 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:38:059 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:38:051 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:38:045 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:36:066 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:36:059 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:36:049 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:34:072 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:34:066 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:34:057 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:32:062 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:32:056 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:32:049 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:30:586 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:30:580 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:30:575 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:30:561 PM DEBUG Not Switching mode to streaming as multi-port off... Apr 21, 2024 12:18:30:561 PM DEBUG All images loaded, switching to snapshot... Apr 21, 2024 12:18:30:560 PM DEBUG ~~loaded image is loaded for data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%221920%22%20height%3D%221080%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201920%201080%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_18f0173b064%20text%20%7B%20fill%3A%23C2F200%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A96pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_18f0173b064%22%3E%3Crect%20width%3D%221920%22%20height%3D%221080%22%20fill%3D%22%23434A52%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22906.65625%22%20y%3D%22585.0545471191406%22%3E...%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E Apr 21, 2024 12:18:30:560 PM DEBUG ~~loaded image is loaded for data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%221920%22%20height%3D%221080%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201920%201080%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_18f0173b05f%20text%20%7B%20fill%3A%23C2F200%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A96pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_18f0173b05f%22%3E%3Crect%20width%3D%221920%22%20height%3D%221080%22%20fill%3D%22%23434A52%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22906.65625%22%20y%3D%22585.0545471191406%22%3E...%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E Apr 21, 2024 12:18:30:559 PM DEBUG ~~loaded image is loaded for data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%221920%22%20height%3D%221080%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201920%201080%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_18f0173b058%20text%20%7B%20fill%3A%23C2F200%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A96pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_18f0173b058%22%3E%3Crect%20width%3D%221920%22%20height%3D%221080%22%20fill%3D%22%23434A52%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22906.65625%22%20y%3D%22585.0545471191406%22%3E...%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E Apr 21, 2024 12:18:30:545 PM DEBUG Calling initPackery() with layout as:true Apr 21, 2024 12:18:30:545 PM INFO Did NOT find a packery layout Apr 21, 2024 12:18:30:544 PM DEBUG after matchMontageProfile, will packery re-init? true Apr 21, 2024 12:18:30:544 PM DEBUG => Making Cocina to show as this monitor was not found in profile Apr 21, 2024 12:18:30:544 PM DEBUG Cocina not found, profile= and group=undefined Apr 21, 2024 12:18:30:544 PM DEBUG => Making Servidor to show as this monitor was not found in profile Apr 21, 2024 12:18:30:544 PM DEBUG Servidor not found, profile= and group=undefined Apr 21, 2024 12:18:30:543 PM DEBUG => Making Entrada to show as this monitor was not found in profile Apr 21, 2024 12:18:30:543 PM DEBUG Entrada not found, profile= and group=undefined Apr 21, 2024 12:18:30:543 PM DEBUG Passed profile is: [] Apr 21, 2024 12:18:30:543 PM DEBUG We are in profile: so disabled monitors is noshow Apr 21, 2024 12:18:30:117 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:30:111 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:30:105 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:30:041 PM DEBUG MontageCtrl: Android detected, using cordova-multiwindow plugin for onStop/onStart instead Apr 21, 2024 12:18:30:040 PM INFO Inside Montage Ctrl:We found 3 monitors Apr 21, 2024 12:18:30:040 PM DEBUG skipping image refresh, packery is still loading Apr 21, 2024 12:18:30:030 PM DEBUG Setting up cycle interval of:10000 Apr 21, 2024 12:18:30:029 PM DEBUG bandwidth: highbw montage refresh set to: 2 Apr 21, 2024 12:18:30:021 PM DEBUG Not active in processImageError for monitor 3 Apr 21, 2024 12:18:30:020 PM DEBUG Not active in processImageError for monitor 2 Apr 21, 2024 12:18:30:018 PM DEBUG Not active in processImageError for monitor 1 Apr 21, 2024 12:18:29:915 PM DEBUG Multiport=0 Apr 21, 2024 12:18:29:909 PM INFO sending stored ZM_MIN_STREAMING_PORT 0 Apr 21, 2024 12:18:29:909 PM DEBUG Montage beforeEnter: copying monitors to montage monitors Apr 21, 2024 12:18:29:908 PM DEBUG after matchMontageProfile, will packery re-init? true Apr 21, 2024 12:18:29:908 PM DEBUG => Making Cocina to show as this monitor was not found in profile Apr 21, 2024 12:18:29:908 PM DEBUG Cocina not found, profile= and group=undefined Apr 21, 2024 12:18:29:908 PM DEBUG => Making Servidor to show as this monitor was not found in profile Apr 21, 2024 12:18:29:907 PM DEBUG Servidor not found, profile= and group=undefined Apr 21, 2024 12:18:29:907 PM DEBUG => Making Entrada to show as this monitor was not found in profile Apr 21, 2024 12:18:29:907 PM DEBUG Entrada not found, profile= and group=undefined Apr 21, 2024 12:18:29:906 PM DEBUG Passed profile is: [] Apr 21, 2024 12:18:29:906 PM DEBUG We are in profile: so disabled monitors is noshow Apr 21, 2024 12:18:29:905 PM DEBUG Montage beforeEnter: got 3 monitors Apr 21, 2024 12:18:29:901 PM DEBUG Setting streamQuery timer to 10000 Apr 21, 2024 12:18:29:889 PM DEBUG CACHE: cached value for key:cached_zmgroups is good as 1619 <3600 Apr 21, 2024 12:18:29:889 PM DEBUG CACHE: found for key: cached_zmgroups with expiry of:3600s Apr 21, 2024 12:18:29:884 PM DEBUG no packery profile, making sure monitors are show Apr 21, 2024 12:18:29:884 PM DEBUG Loading hidden/unhidden status for profile: Apr 21, 2024 12:18:29:883 PM DEBUG Storing streaming=http://192.168.31.253/zm/cgi-bin recording=http://192.168.31.253/zm Apr 21, 2024 12:18:29:883 PM DEBUG No servers matched, filling defaults... Apr 21, 2024 12:18:29:883 PM DEBUG Storing streaming=http://192.168.31.253/zm/cgi-bin recording=http://192.168.31.253/zm Apr 21, 2024 12:18:29:882 PM DEBUG No servers matched, filling defaults... Apr 21, 2024 12:18:29:882 PM DEBUG Storing streaming=http://192.168.31.253/zm/cgi-bin recording=http://192.168.31.253/zm Apr 21, 2024 12:18:29:881 PM DEBUG No servers matched, filling defaults... Apr 21, 2024 12:18:29:876 PM DEBUG default multi-server protocol will be:http:// Apr 21, 2024 12:18:29:875 PM INFO multi server list loaded Apr 21, 2024 12:18:29:875 PM DEBUG deobfuscate: before:20 after:23 scheme:lzs Apr 21, 2024 12:18:29:874 PM DEBUG CACHE: decryption requested Apr 21, 2024 12:18:29:874 PM DEBUG CACHE: cached value for key:cached_multi_servers is good as 1619 <86400 Apr 21, 2024 12:18:29:874 PM DEBUG CACHE: found for key: cached_multi_servers with expiry of:86400s Apr 21, 2024 12:18:29:868 PM INFO Monitor load was successful, loaded 3 monitors Apr 21, 2024 12:18:29:867 PM DEBUG no packery profile, making sure monitors are show Apr 21, 2024 12:18:29:867 PM DEBUG Loading hidden/unhidden status for profile: Apr 21, 2024 12:18:29:867 PM DEBUG After duplicate processing, we have: 3 monitors Apr 21, 2024 12:18:29:867 PM DEBUG Before duplicate processing, we have: 3 monitors Apr 21, 2024 12:18:29:866 PM DEBUG CACHE: cached monitor data type is:object Apr 21, 2024 12:18:29:866 PM DEBUG deobfuscate: before:1958 after:7315 scheme:lzs Apr 21, 2024 12:18:29:862 PM DEBUG CACHE: decryption requested Apr 21, 2024 12:18:29:862 PM DEBUG CACHE: cached value for key:cached_monitors is good as 1619 <86400 Apr 21, 2024 12:18:29:862 PM DEBUG CACHE: found for key: cached_monitors with expiry of:86400s Apr 21, 2024 12:18:29:860 PM DEBUG Monitor URL to fetch is:http://192.168.31.253/zm/api/monitors/index/Type!=:WebSite/Function!=:None.json?&token= Apr 21, 2024 12:18:29:859 PM DEBUG ZMS Multiport reported: 0 Apr 21, 2024 12:18:29:859 PM DEBUG ZM_MIN_STREAMING_PORT not configured, disabling Apr 21, 2024 12:18:29:858 PM DEBUG Setting multi-port to:false Apr 21, 2024 12:18:29:852 PM DEBUG CACHE: storing key data in cache now, with expiry of 86400 Apr 21, 2024 12:18:29:851 PM DEBUG HTTP function in cache returned:object Apr 21, 2024 12:18:29:833 PM DEBUG CACHE: NOT found for:cached_multi_port reverting to HTTP Apr 21, 2024 12:18:29:831 PM DEBUG Checking value of ZM_MIN_STREAMING_PORT for the first time Apr 21, 2024 12:18:29:819 PM DEBUG obfuscate: original:5972 obfuscated:1679 scheme:lzs Apr 21, 2024 12:18:29:811 PM DEBUG ZM State has not changed, still at default Apr 21, 2024 12:18:29:753 PM INFO getMonitors:Loading all monitors Apr 21, 2024 12:18:29:750 PM DEBUG NVR: Regenerating connkeys for all monitors at 1713716309750



**Additional context**

I'm no expert by any means, but I think the problem is related to the error "Not active in processImageError for monitor x", I tried to google it but found nothing.

Its so sad because zmninja works so well on windows, I wish I could make it work on my android phone as well.

Thanks in advance.  
connortechnology commented 3 weeks ago

This was fixed with 1.7.007.

SubMaxSubRose commented 3 weeks ago

This was fixed with 1.7.007.

I installed 1.7.007 and its working perfectly now. Thanks! and have a lovely week.

medienservice commented 1 week ago

hi, where can I get the version? In the Playstore is only v1.7.006

connortechnology commented 1 week ago

Apparently it was held up by google to answer health-app related questions. Have pushed it now, should show up soon.

SubMaxSubRose commented 1 week ago

hi, where can I get the version? In the Playstore is only v1.7.006

Hi, yes I noticed the same thing, so I downloaded the v1.7.007 apk directly from the "releases" section of GitHub.