Volume Control for Video Player

Moderator: Moderator Group

Volume Control for Video Player

Postby cormac.conn » Mon Sep 12, 2016 5:57 pm

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?
cormac.conn
 
Posts: 32
Joined: Mon Jul 01, 2013 11:20 am

Re: Volume Control for Video Player

Postby visulize » Mon Sep 12, 2016 11:51 pm

Range between 0 and 1. You will find it much happier.
Craig@visulize.co.uk

Visulize Ltd
+44 7973139904
User avatar
visulize
 
Posts: 29
Joined: Thu May 24, 2012 10:28 am

Re: Volume Control for Video Player

Postby Daniel Kaminski » Tue Sep 13, 2016 9:00 am

Here is a list of all the Ranges in Pandoras Box.
http://www.coolux.de/root/downloads/sup ... r_list.htm

Daniel
--
Daniel Kaminski
Pandras Box Expert
User avatar
Daniel Kaminski
 
Posts: 919
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Re: Volume Control for Video Player

Postby cormac.conn » Tue Sep 13, 2016 9:17 am

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?
cormac.conn
 
Posts: 32
Joined: Mon Jul 01, 2013 11:20 am

Re: Volume Control for Video Player

Postby Daniel Kaminski » Tue Sep 13, 2016 9:58 am

Are you playing the videos in Pandoras Box or Widget Designer?
--
Daniel Kaminski
Pandras Box Expert
User avatar
Daniel Kaminski
 
Posts: 919
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Re: Volume Control for Video Player

Postby cormac.conn » Tue Sep 13, 2016 10:06 am

In Widget Designer. It will be used as an interactive kiosk.
cormac.conn
 
Posts: 32
Joined: Mon Jul 01, 2013 11:20 am

Re: Volume Control for Video Player

Postby cormac.conn » Tue Sep 13, 2016 6:51 pm

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?
cormac.conn
 
Posts: 32
Joined: Mon Jul 01, 2013 11:20 am

Re: Volume Control for Video Player

Postby scottywalker » Wed Sep 14, 2016 1:44 pm

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
scottywalker
 
Posts: 31
Joined: Thu Aug 16, 2012 12:58 pm
Location: Dubai U.A.E

Re: Volume Control for Video Player

Postby Dennis Kuypers » Wed Sep 14, 2016 9:09 pm

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
Dennis Kuypers
Product Developer, Software

Online Manual
User avatar
Dennis Kuypers
coolux Germany
 
Posts: 771
Joined: Thu Jul 05, 2012 12:18 pm


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 3 guests