How to configure Cambozola V0.63 accessories.

Support and queries relating to all previous versions of ZoneMinder
Locked
Eklectick
Posts: 127
Joined: Sat Nov 20, 2004 1:12 am

How to configure Cambozola V0.63 accessories.

Post by Eklectick »

Hi

I installed Cambozola v0.63 on a LiveCD installation of version 1.19.5 of ZoneMinder.

The installation was pretty simple, just placed version 0.63 of cambozola.jar into /var/www/html/zm directory. This version has nice accesories like ZoomIn/Out,Pan,Home, etc, which appear just by moving the mouse pointer onto the left side of the streaming image.

Cambozola´s website states that there is a way to configure which accesories to load while using it. There are two ways to do this:

One is via http snippets including something like:
<param name="accessories" value="Home,ZoomIn,ZoomOut,Pan"/>

... and the other is using command line as:
-accessories=Home,ZoomIn,ZoomOut,Pan

Could someone point me out on a way to configure Cambozola v0.63 in a way so that it only shows certain accesories on any of its instances instead of the default ones?

I beleive this can be done via command line on the ZM machine and would appreciate very much on what the procedure to activate globally only certain accesories is.

Regards!
Eklectick
Posts: 127
Joined: Sat Nov 20, 2004 1:12 am

Post by Eklectick »

Hi again

I came up with a "not so elegant" way of configuring accesories for cambozola 0.63 via http applet parameters.

I added the parameter on three files:

zm_html_view_event.php
zm_html_view_montagefeed.php
zm_html_view_watchfeed.php

The original applet on each of these files looks like this:

Code: Select all

<applet code="com.charliemouse.cambozola.Viewer" archive="<?= ZM_PATH_CAMBOZOLA ?>" align="middle" width="<?= reScale( $event['Width'], $scale ) ?>" height="<?= reScale( $event['Height'], $scale ) ?>"><param name="url" value="<?= $stream_src ?>"></applet>
... the modified applet with the added parameter looks like this:

Code: Select all

<applet code="com.charliemouse.cambozola.Viewer" archive="<?= ZM_PATH_CAMBOZOLA ?>" align="middle" width="<?= reScale( $event['Width'], $scale ) ?>" height="<?= reScale( $event['Height'], $scale ) ?>"><param name="accessories" value="Home,ZoomIn,ZoomOut,Pan"/><param name="url" value="<?= $stream_src ?>"></applet>
With this added parameter, the accesories that pop to the left while looking at a stream via cambozola 0.63 are only those of: home, zoomIn, zoomOut and pan.

I am sure there is a more elegant way of doing this globally via command line. Perhaps we could persuade Phil (by the way, kudos Phil!) to add something like "ZM_CAMBOZOLA_OPTIONS" to be run via command line on the Tools tab of ZM Options.

Regards!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Ideally I will be replacing Cambozola with a custom applet when I get chance to finish it. I could add a tools option though this would then imply that the sizes of the windows would have to be recalculated which might take some figuring out.

I see whether it's easy to do and doesn't break anything.

Phil
Locked