Click to See Complete Forum and Search --> : Need help with increasing volume on mp3 javascript!


holodoctor1
06-19-2004, 03:32 AM
Hi,
I really, really need help increasing the volume of the mp3's that play on my webpage. I know they can be increased because when I right click on the embedded windows media player, i have the choice to increase volume.

Could someone give me a snippet of javascript that increases the volume to either the maximum, or something like 200% above normal.

Thanks!

here's the random mp3 code I’m using. any help is greatly appreciated!

<SCRIPT>
<!--developed by A1 javascripts-http://www.A1javascripts.com -Please keep these lines intact if using this random midi script-->

var nummidi = 5
day = new Date()
seed = day.getTime()
ran = parseInt(((seed - (parseInt(seed/1000,10) * 1000))/10)/100*nummidi + 1,10)

if (ran == (1))
mp3=("www.song1.com")
if (ran == (2))
mp3=("www.song2.com")
if (ran == (3))
mp3=("www.song3.com")
if (ran == (4))
mp3=("www.song4.com")
if (ran == (5))
mp3=("www.song5.com")
document.write('<EMBED SRC= "' + mp3 + '" controller=TRUE align=left height=24 width=35 Autostart=true hidden=false loop=true>')
</script>

Tage
06-19-2004, 07:58 AM
You can change the volume by right-clicking the embedded Windows Media Player because you are the user. The programmer is not allowed to touch the user's volume level. It might burst some unsuspecting person's eardrums anyway. P=

Tage

holodoctor1
06-19-2004, 03:13 PM
Aww really? Even though it's not set to maximum when it opens?

I'm surprised there's not a "vol="100"" or something

Guess i'll be increasing the volume on all my media files :P

holodoctor1
06-19-2004, 06:10 PM
I was just given this page: microsoft media player volume (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/settingsvolume.asp) by someone on another forum, but he didn't tell me how to incorporate it into my javascript. any ideas?

thanks in advance :D

Tage
06-19-2004, 07:39 PM
Go figure. Well, I imagine it has very limited browser support, but this page (http://msdn.microsoft.com/library/en-us/wmplay/mmp_sdk/simpleexampleofscriptinginawebpage.asp) should help you set up the script with the link you provided.

Tage

holodoctor1
06-19-2004, 09:06 PM
hmmm, that page doesn't have any examples of volume, which is what i need...

any other ideas?

thanks very much