Re: ZoneMinder Client Mobile Application for Android
Posted: Sun Aug 11, 2013 1:38 pm
awesome !!!
ZoneMinder Forums
https://forums.zoneminder.com/
That would be awesome! I paid for zmview on g'play, but I like how your app works a lot better. (It just doesn't do events, which is why I keep zmview around.)kevin186 wrote:Hi everybody. I am sorry that I have not released a newer version lately as I have been busy with work and family. I will try to find time to clean up my current version that I use so that I can let everyone else try it.
Wellllll... Installed the new APK, (and also updated AIR), and updated the skin on the server. App can start fine, and can do a single frame updates just fine, even with the delay set to zero. But mjpeg streaming instantly says "stream closed". If I double tap the icon, it goes in/out of full screen, but still says stream closed.kevin186 wrote:I just packaged the latest version of my app and the corresponding skins @ http://dvr-security.net/mobile/zmc/ .
Please make sure that you follow the instructions and install the new skins, otherwise the app will not work.
Thanks for the quick feedback. That is bad news. If you had the app installed in the past, did it work then? Using port other than 80? Are you using ssl? The little green text at the top actionbar, does it say wifi-jpeg or something like that?TheKorn wrote:Wellllll... Installed the new APK, (and also updated AIR), and updated the skin on the server. App can start fine, and can do a single frame updates just fine, even with the delay set to zero. But mjpeg streaming instantly says "stream closed". If I double tap the icon, it goes in/out of full screen, but still says stream closed.kevin186 wrote:I just packaged the latest version of my app and the corresponding skins @ http://dvr-security.net/mobile/zmc/ .
Please make sure that you follow the instructions and install the new skins, otherwise the app will not work.
I'd love to give you more diag info, but can't seem to find a place to get any.
Yup, had both v1 & v2 installed previously, they worked great! (android 2.3, 4.0, 4.1.2 devices)kevin186 wrote:Thanks for the quick feedback. That is bad news. If you had the app installed in the past, did it work then?
Port 80, no SSL. Green text at the top says wifi-single when it works, says wifi-jpeg when it dies.Using port other than 80? Are you using ssl? The little green text at the top actionbar, does it say wifi-jpeg or something like that?
Ah! I switched to streaming then did a long press. It says... something (it goes by too quick to really see) then it says stream closed again.Also, to restart a stopped monitor feed, long press it, not double tap. I have to change that to a play button or something.
Ask and ye shall receive!I have a feeling that there is some server configuration that I didnt take into consideration, maybe from it being a different version of zoneminder. I would love to see the ouput from your console by going to youraddress.com/zm/?skin=zmc_xml&view=console.xml .
Code: Select all
This document had no style information.
<console>
<authLevel>
0
</authLevel>
<skinVersion>
3
</skinVersion>
<running>
1
</running>
<username>
admin
</username>
<maxBandwidth>
high
</maxBandwidth>
<highBandwidth>
30
</highBandwidth>
<mediumBandwidth>
10
</mediumBandwidth>
<lowBandwidth>
15
</lowBandwidth>
<phoneBandwidth>
15
</phoneBandwidth>
<viewStream>
1
</viewStream>
<viewMonitors>
1
</viewMonitors>
<editMonitors>
1
</editMonitors>
<viewEvents>
1
</viewEvents>
<editEvents>
1
</editEvents>
<serverName>
[REDACTED -- ip address]
</serverName>
<serverPort>
80
</serverPort>
<baseURL>
http://[REDACTED -- ip address]
</baseURL>
<pathZMS>
/cgi-bin/nph-zms
</pathZMS>
<monitor>
<monitorID>
8
</monitorID>
<monitorName>
Garage-2
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
480
</monitorHeight>
<monitorSequence>
1
</monitorSequence>
<monitorFunction>
Modect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
454
</monitorEvents>
</monitor>
<monitor>
<monitorID>
9
</monitorID>
<monitorName>
Garage-3
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
480
</monitorHeight>
<monitorSequence>
2
</monitorSequence>
<monitorFunction>
Modect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
1076
</monitorEvents>
</monitor>
<monitor>
<monitorID>
7
</monitorID>
<monitorName>
FrontDoor
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
480
</monitorHeight>
<monitorSequence>
3
</monitorSequence>
<monitorFunction>
Modect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
441
</monitorEvents>
</monitor>
<monitor>
<monitorID>
10
</monitorID>
<monitorName>
SideDoor
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
480
</monitorHeight>
<monitorSequence>
4
</monitorSequence>
<monitorFunction>
Modect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
455
</monitorEvents>
</monitor>
<monitor>
<monitorID>
4
</monitorID>
<monitorName>
PinballAlley-HD
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
1280
</monitorWidth>
<monitorHeight>
800
</monitorHeight>
<monitorSequence>
5
</monitorSequence>
<monitorFunction>
Nodect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
661
</monitorEvents>
</monitor>
<monitor>
<monitorID>
11
</monitorID>
<monitorName>
PinballAlley-SD
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
400
</monitorHeight>
<monitorSequence>
6
</monitorSequence>
<monitorFunction>
Modect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
5
</monitorEvents>
</monitor>
<monitor>
<monitorID>
3
</monitorID>
<monitorName>
Garage-1
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
480
</monitorHeight>
<monitorSequence>
7
</monitorSequence>
<monitorFunction>
None
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
0
</monitorEvents>
</monitor>
<monitor>
<monitorID>
12
</monitorID>
<monitorName>
Fixed_Roamer
</monitorName>
<monitorMaxFPS>
0.00
</monitorMaxFPS>
<monitorWidth>
640
</monitorWidth>
<monitorHeight>
480
</monitorHeight>
<monitorSequence>
8
</monitorSequence>
<monitorFunction>
Modect
</monitorFunction>
<monitorEnabled>
1
</monitorEnabled>
<monitorEvents>
29
</monitorEvents>
</monitor>
</console>
If you have a PPTP VPN client (such as built into windows & ubuntu), I can give you temporary access.If anyone has trouble and would be willing to give me a user account, I would try to connect my app to your server and debug.
Well, all my cameras are IP cameras of one flavor or another. The standard setup for an IP camera is to not define alarm or max FPS on the server, and instead do it on the camera end. Bad things happen if you try and limit IP cameras on the zoneminder end.kevin186 wrote:I see that the monitorMaxFPS is returning a value of 0.00. I am not sure if that is what you actually have it set to, or if there is a problem with the skin file.
http://www.zoneminder.com/wiki/index.php/Main_Documentation wrote:Note for IP cameras: ZoneMinder has no way to set or limit the mjpeg stream the camera passes, some cams you can set this through the url string, others do not. So if you're using mjpeg feeds you must NOT throttle here at the server end, only the cam end. If you want to use this feature, the server to throttle, then you MUST use jpeg instead of mjpeg method to get picture from the camera
Nope, both max and alarm max fps are unset (empty) for all my cameras. None of them are explicitly set to 0 max fps.kevin186 wrote:Can you please tell me if your real setting of Maximum FPS is in fact 0.00?
I believe that's zoneminder's internal representation for 'use limit set on source device'. i.e. choke down as fast as the source sends it!And also I am wondering that if it is set to 0.00 on purpose, is that to say that there is no limit?
Ha, it's not all that advanced; PPTP is permanently cryptographically compromised. It's just a lot easier/faster (and good enough for this use) to set up temporary PPTP VPNs than generate OpenVPN keys.About that PPTP VPN, I never even heard of that. You must be running some kind of advanced setup there.
Code: Select all
echo "<monitorMaxFPS>" . $monitor['MaxFPS'] . "</monitorMaxFPS>\n";
Works for me on android and ipod. Must be another bug. Are you able to change monitors by swiping left or right while on the watch view? The cycle just triggers a left swipe to change monitor at set interval. What happens when you press the cycle button on the watch view, or launch it from the console?TheKorn wrote:That did the trick, mjpeg streaming working again! Thanks!
(should cycle be working? That's never worked for me, still doesn't.)
Yep, if I bring up a monitor, I can switch to another monitor by swiping left/right. Cycle doesn't bring up any monitors at all. Swiping left/right does nothing, but I can back out to the main menu.kevin186 wrote:Are you able to change monitors by swiping left or right while on the watch view? The cycle just triggers a left swipe to change monitor at set interval. What happens when you press the cycle button on the watch view, or launch it from the console?