AbelCam Forum
Download AbelCam buy Pro
 
 
 
Welcome Anonymous User
11/22/2024 - 11:34 AM
Quick Search:
Quick Jump:
 
Announcements
Latest Topics
 
Simple Pan and Tilt control HTML code
By: RonaldRu
Rank: New Member
Topics: 14
From: USA
Added: 02/15/2010 - 01:51 PM

I'm looking for a sample of simple pan and tilt control of my Logitech Orbit Sphere MP camera.
Doesn't anybody have the HTML code that I can copy and paste into my web page?

I know how to stream, but I want to add a control console to my page. Nothing elaborate.

Thanks
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 02/15/2010 - 11:11 PM

Use the positioning applet - it's simpler than simple html
By: RonaldRu
Rank: New Member
Topics: 14
From: USA
Added: 02/16/2010 - 09:35 PM

Forgive any dumb questions as I am new to AbelCam and this web site.
Where can I download the positioning applet?
From sse:
Use the positioning applet - it's simpler than simple html
By: MelvinG
Rank: Magna Cum Laude
Topics: 661
From: Los Angeles, USA
Added: 02/17/2010 - 01:37 AM

It's already on your system in:

program files/abelcam/wwwroot/java/applets/abelabs.zip

If you look at the .html and .inc files in that directory and in program files/abelcam/wwwroot/java/ you will see how it's used. Or just point your browser at your camsite (the default/sample one at "localhost:8080") and click the Java button and then view page source.
By: RonaldRu
Rank: New Member
Topics: 14
From: USA
Added: 02/17/2010 - 05:10 PM

Thank you for being patient with a newbie. I totally forgot those directories were there.

From MelvinG:
It's already on your system in:

program files/abelcam/wwwroot/java/applets/abelabs.zip

If you look at the .html and .inc files in that directory and in program files/abelcam/wwwroot/java/ you will see how it's used. Or just point your browser at your camsite (the default/sample one at "localhost:8080"Wink and click the Java button and then view page source.
By: RonaldRu
Rank: New Member
Topics: 14
From: USA
Added: 02/18/2010 - 02:56 PM

Melvin. I believe I know why I'm having so much trouble.
I was finally able to see my cam online using the default settings. I "viewed source" and saved it. The only problem is I am using an old version of Adobe GoLive 6. It doesn't recognize or can't edit the !--#include functions.

So I went back to your sample 4 cam page in Adobe to edit it. The trouble I'm having there is I don't think I have my AbelCam installation folder structure the same as yours. I believe I need to get these two lines of code right as shown in your page=
codebase='http://eeber.no-ip.org:9334/abel/java/applets'
<param name='baseref' value='http://eeber.no-ip.org:9334/abel/'>

I know I have to change the ports but I'm not sure of the directory structure, as you seem to NOT be using (or eliminated) the "wwwroot" directory.

Where do I need to point to for the 'codebase' and 'baseref'?
Thanks for your help.
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 02/18/2010 - 07:58 PM

Replace
http://eeber.no-ip.org:9334/abel/
with
http://your-host:your-port/
in both URLs and it should work.
By: MelvinG
Rank: Magna Cum Laude
Topics: 661
From: Los Angeles, USA
Added: 02/18/2010 - 08:32 PM

"Yes" to what SSE said. I should have mentioned that my paths are a bit strange. It's because my site is actually running on two servers: parts of it are served by Apache and other parts are served by AbelCam itself. The unusual paths are my way of getting everything marshalled together through a single external port. This probably doesn't apply to your setup - just felt like explaining myself Smile.

I would highly recommend you NOT use GoLive right now. Use Notepad or Wordpad to make a very basic page that has all the applet functionality but no fancy stuff. Once it works, then go ahead and feed it to GoLive if you want, to make it look nice and pretty.
By: RonaldRu
Rank: New Member
Topics: 14
From: USA
Added: 02/19/2010 - 02:04 PM

I thik I'm still confused about the server and the path to point to.
Here is what I have and it's not working:
<applet id='java1'
codebase='http://lowpockets.homeip.net:8012/'
code='AbelCamstreaming.class'
archive='AbelCamstreaming.zip'
height='240'
width='320'>
<param name='baseref' value='http://lowpockets.homeip.net:8012/'>
<param name='height' value='240'>
<param name='width' value='320'>
<param name='fps' value='4'>
<param name='cam' value='0'>
</applet>
=======================================================================
Here is what java is saying:
client initalized pos0
load: class AbelCamstreaming.class not found.
java.lang.ClassNotFoundException: AbelCamstreaming.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://lowpockets.homeip.net:8012/AbelCamstreaming/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: AbelCamstreaming.class
By: RonaldRu
Rank: New Member
Topics: 14
From: USA
Added: 02/19/2010 - 02:32 PM

Never mind guys. I got it!Cheesy

Here is the line I fixed: codebase='http://lowpockets.homeip.net:8012/java/applets'

It was the /java/applets' that I was missing.

This make no sense to the average person who doesn't understand how a server works. Why is it starting at /java/applets'?

It might be a worthwhile addition to AbelCams tutorials to give WebDummies like me and brief course on "Servers for Dummies"

Thanks for your help. I almost gave up on AbelCam but I think it is a great program and wanted t to work for my application.
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 02/19/2010 - 05:51 PM

Why is it starting at /java/applets'?

Because that's where the archive AbelCamstreaming.zip is located

It might be a worthwhile addition to AbelCams tutorials to give WebDummies like me and brief course on "Servers for Dummies"
The Wiki Page is supposed to contain all the required information, but at a closer look the codebase parameter is just mentioned, not explained.

It's impossible to cover all technologies used in AbelCam in detail (for Dummies), as there are too many.
We're trying to document AbelCam, not the internet Wink