Page 1 of 1

Volume Control for Video Player

PostPosted: Mon Sep 12, 2016 5:57 pm
by cormac.conn
Hi everyone. The widget I am building is a simple video player with thumbnails that load the content. The issue I am having is with volume controls. I know there is the command WDVideoVolumeUp and Down, which can be done in increments. However, when I apply this in, say increments of 20, the volume will only go to 100% maximum or off completely. Is there something that I could be doing wrong here? Also, is there a way to have this is a fader instead of a button?

Re: Volume Control for Video Player

PostPosted: Mon Sep 12, 2016 11:51 pm
by visulize
Range between 0 and 1. You will find it much happier.

Re: Volume Control for Video Player

PostPosted: Tue Sep 13, 2016 9:00 am
by Daniel Kaminski
Here is a list of all the Ranges in Pandoras Box.
http://www.coolux.de/root/downloads/sup ... r_list.htm

Daniel

Re: Volume Control for Video Player

PostPosted: Tue Sep 13, 2016 9:17 am
by cormac.conn
Thanks for the replies guys, but it's still not working as it should.

On the 'Volume Up' button, I have the script WDVideoVoumeUp,1,1. A few clicks of the button does nothing, and then it just goes to full volume. Is there not a way to have the volume gradually go up with each click of the button?

Re: Volume Control for Video Player

PostPosted: Tue Sep 13, 2016 9:58 am
by Daniel Kaminski
Are you playing the videos in Pandoras Box or Widget Designer?

Re: Volume Control for Video Player

PostPosted: Tue Sep 13, 2016 10:06 am
by cormac.conn
In Widget Designer. It will be used as an interactive kiosk.

Re: Volume Control for Video Player

PostPosted: Tue Sep 13, 2016 6:51 pm
by cormac.conn
Okay, I think I understand what's going on. I thought the script 'WDVideoVolumeUp' brought the volume up by that amount each time you clicked it. It actually just sets the volume to that level. I can create a few buttons with increments of 0.1, 0.2, etc.

Is there any way to create a fader like the one that is in the Item Properties of the Video Player?

Re: Volume Control for Video Player

PostPosted: Wed Sep 14, 2016 1:44 pm
by scottywalker
You can make a vertical fader the usual way and give it the value range of 0-100. You can then make a button with the script "WDVideoSetVolume,1,fader1.value" which will then set the volume to whatever your fader is at. You could also put the same command into a scripttimer that would run every 0.5 of a second and then your fader should work automatically

Re: Volume Control for Video Player

PostPosted: Wed Sep 14, 2016 9:09 pm
by Dennis Kuypers
Hello,

If you are using a Widget PRO you can use the Action Script node. Select "Fader1.Value" from the list at the top and then put your volume script right below it. Don't forget to press Apply.

Regards
Dennis