Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Volume default : change it ?


Hey
I would like to put the volume on 20 (0-100) when someone refresh the main page
this is my code :
<center>
<script src="http://jwpsrv.com/library/LMTYONbdEeOI1SIACmOLpg.js"></script>

<div align="center" id="myElement"></div>
<div class >
<script >
jwplayer("myElement").setup({
file: "http://stream03.ustream.ca:8000/ckxl128.mp3",
width: 1000,
height: 30,
volume:30, // here ? its not working
'autostart': 'true'
});
</script>
</div>
</center>

3 Community Answers

MisterNeutron

User  
0 rated :

There is no "volume" attribute in the JW6 embedding method. Where did you see that being used? You have to use the Javascript API, after the setup() block (not inside it). For example:

<script>
jwplayer().setVolume(80);
</script>

Todd

JW Player Support Agent  
1 rated :

Correct. You can set the volume before playback like this:

<div id="video">Your video goes here…</div> <script> jwplayer("video").setup({ //your setup goes here }); jwplayer().onBeforePlay(function(){ jwplayer().setVolume(20); }); </script>

adnane200

User  
0 rated :

Thank you.

This question has received the maximum number of answers.