PDA

View Full Version : Volume slider



Dave T
March 2nd, 2003, 12:28 PM
Ben:

I'm interested in adding volume slider support to NetRemote. What I'm thinking is that you could add a button in ProtoEdit or Tonto. NetRemote would know to display it as a slider because of some property of it - probably its name. It would also have a text box to display the current volume leve. It would also need three other properties - the min, max, and step count - perhaps queried at runtime from a server process (girder?). At runtime, it would query the server for the current level, and you could scroll the slider - sending the updated level to the server. It would be up to the server, obviously, to receive the new level and use it to set the volume.

This would be a very cool feature in NetRemote, usable by anyone who had discrete volume control, such as via RS232.

What do you think? I'd be willing to do most of the work. I probably will want to have support for my own server process I do for control, but we could also have generic girder support, too.

Anyone else think they could use this?

- Dave

Ben S
March 2nd, 2003, 02:28 PM
Sounds great, Dave. When I return from business on Wednesday I'll get the sample driver back up to snuff, and send you that (along with the recent NetRemote snapshot).

I've thought about this as well. Perhaps it could be a generic widget set, and you could embed the driver info in the widget?

IE: This is a volume slider, the min and max are this, but on change, call driver id -1 with this event.

So it could be generic, for talking to MJB, Girder, or your own server.

What do you think?

Dave T
March 2nd, 2003, 03:16 PM
Ben:

Sorry - I don't follow. Where would the properties physically be specified for the widget? Somehow inside the properties of the button in the CCF?

I'm thinking it might be nice if the slider was a COM object on the server, that supported connection points. NetRemote could talk to it via socket calls, but server side processes (Girder, etc), could get notification of value changes by registering for a connection point event callback. I'm just not sure what the best way would be for the slider to get its initial properties (min, max, step value, and initial value).

- Dave

brockgr
March 2nd, 2003, 07:14 PM
The only thing to watch with a slider might be the number of events it generates. When would you send an event back to the HTPC? Every move? Every move - after some timeout? When the user stop's pressing?

Gavin

Ben S
March 5th, 2003, 09:25 AM
I think it would have to be when you let go of the slider, or every specified time.

I'm wondering if it wouldn't be easier to developer a library for these widgets, and use the library in the drivers. So the slider component could be used in Girder, MJB, and your custom driver for your server side app.

Dave, I'm going to get the code off to you again before this week is done.

Aaron
June 20th, 2003, 08:14 PM
Did this get incorporated into NR?

I'd love to use a slider control for several things!

brockgr
June 20th, 2003, 08:20 PM
Yes this is in - I thought it was in the demo CCF. If not, both my LDJ and Zoomplayer CCF's have sliders.

Gavin

Ben S
June 21st, 2003, 08:32 AM
Yep. There is one if you go the Media Jukebox panel, and then click "Volume". The volume is a slider.