Http Remotes

Posted by: suomi35

Http Remotes - 24/11/2002 18:32

I have decided to release some http remotes, written in vb, to you guys.

These apps are not perfect by any means, but they do work.

Most of my coding troubles came when trying to figure out how to get information from the player. I wanted to import /proc/empeg_screen.png into the remote, but it is a nonstandard format for .png, so visual basic would not recognize it as such. (I even tried using the browser control element from in the remote. This worked, but used well over 30% of system resources, so no go!)

I eventually gave up on /proc/empeg_screen.png and ended up just parsing /proc/empeg_notify for track info. It polls the player about every second and is very easy on system resources.

I hope you guys will find these useful. Feel free to modify them in any way. If somebody can get the empeg display into one I'd be really interested in seeing it. I'd also like to see a remote like this done in Java...Jemplode has a very nice Grab Empeg Screen function that could be incorporated.

Have fun,
-Jason
Posted by: leftyfb

Re: Http Remotes - 24/11/2002 18:51

Run-time error '339':

Component 'CSWSK32.OCX' or one of it's dependencies not correctly registered: a file is missing or invalid

Tried running the 3rd one on my laptop running XP Pro.
Posted by: suomi35

Re: Http Remotes - 24/11/2002 19:47

Well, I have only tested em on w2kpro...
Posted by: leftyfb

Re: Http Remotes - 24/11/2002 19:50

I just tried it on a freshly built win2k pro and got the same error.
Posted by: trs24

Re: Http Remotes - 24/11/2002 20:05

just tried it on my W2K Server and worked like a champ. Nice motes suomi!
Posted by: suomi35

Re: Http Remotes - 24/11/2002 20:10

You either do not have CSWSK32.OCX or it is not registered properly.

Open up Windows Explorer and search for the file CSWSK32.OCX
It should be in either:
C:\Windows\system\
or
C:\Winnt\system32\

If you don't find it you'll need to get it off the web and put it in one of the aforementioned locations.

Then:

Goto Start Menu - Run - then type in:
regsvr32 c:\windows\system\CSWSK32.OCX
or
regsvr32 c:\winnt\system\CSWSK32.OCX
Posted by: leftyfb

Re: Http Remotes - 24/11/2002 20:54

That seemed to have worked, but out of curiousity, where did that ocx file come from? It's not installed from a fresh copy of XP or win2k.
Posted by: suomi35

Re: Http Remotes - 24/11/2002 21:16

It's a toolkit called SocketTools for VB.
You can get CSWSK32.OCX here (82K).
Sorry for the confusion, if these apps were meant for endusers I'd have that file packaged in an installer.
Posted by: trs24

Re: Http Remotes - 25/11/2002 20:24

After trying to run it on my XP box I had to install the ocx file as well... not a prob once it was in the appropriate folder though!

I had attempted something very similar with RealBasic on the mac - and ran into the same problem displaying the empeg screen. With RB I could only figure out how to implement the display through an http socket through which the png was downloaded and displayed every second or so. But it too took up A LOT of system resources and wasn't really practical...

So if anyone is able to tackle this issue from another angle I also would appreciate the info!

Thanks!

.::trs
Posted by: V99

Re: Http Remotes - 25/11/2002 20:28

I'm working on it for my Palm using VNC.. For simple remote display/control you can just use any old VNC Client to connect to the Empeg and get the standard Empeg UI.