Description
Hello,
i am using ZM v1.25.0 from debian repository and it still tries to use cambozola.jar wheter its installed or not, even doesn't matter if i disable it in options. "cycle" mode is ok, but "montage" still tries to load some java stuff (which never worked for me - even with cambozola.jar in place). Also the player for recorded events doesn't work.
I can suggest you best practice to play MJPEG in Linux web browsers:
Simply include MJPEG stream URL using img src tag :-) That's all. Works in most browsers i've tried (not only on linux).
I've been writingand using software similar to ZM (however much simplier) before i've found ZM and i've used this technique with great success. But i've also find that it's good to refresh connection (or whole page) periodically (like once in 1-10minutes), because MJPEG stream can die due to network errors.
Right now i am successfully using this (ugly hack) by adding followinf line to function getStreamSrc(...):
return( preg_replace('/mode=single/', 'mode=jpeg', $streamSrc) );
Before this, there were only still images in "cycle" which wasn't much usefull, "motage" mode and record player are still problematic and showing only failed java applets to me.
Is it possible to add some ZoneMinder option to enforce this mode for MJPEGs? All i need to be happy when using modern browsers is to embed both still JPEG images and MJPEGs using img src tag and completely avoid any other kind of playback and streaming to browser.
You can even control the playback using javascript (eg.: you can change src attribute of img element to play different clip, or to periodically refresh it)
BTW For browsers that do not support this i would reccomend Adobe Flash mode using external SWF rather than Java applet. However it doesn't matter to me... All i need is MJPEG included using IMG SRC :-)
Activity