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

Sizing JW Player for MP3 only


I am using JW Player 5.3 for MP3 playback on a website and I only want the controller portion of the player to show.

I am using the following settings along with jwplayer.js

<div id="sound">Loading the player ...</div>

<script type="text/javascript">
jwplayer("sound").setup({
flashplayer: "jwplayer/player.swf",
file: "jwplayer/O-Holy-Night.mp3",
height: 24,
width: 400
});
</script>

This should work, but the actual size of the #sound div displays at 304px x 53px. It also displays the play button that would appear in the middle of a video window.

By the way it plays the mp3 fine.

How do I configure it to limit the size to 24 by 400?

7 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

That should work, can you provide a link?

JW Player

User  
0 rated :

Hi Ethan,

Here's the link: http://www.christmasnativity.org/apex/gallery

Thanks,

Forrest

Ethan Feldman

JW Player Support Agent  
0 rated :

Use this code:

script type=“text/javascript”>
jwplayer(“sound”).setup({
flashplayer: “http://www.christmasnativity.org/jwplayer/player.swf”,
file: “http://www.christmasnativity.org/jwplayer/O-Holy-Night.mp3”,
height: 25,
width: 300,
controlbar: “bottom”
});
</script>

JW Player

User  
0 rated :

Hi Ethan,

controbar: "bottom" made the difference.

BTW 24 is the best height value.

Thanks for the help. Much appreciated.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np :)

JW Player

User  
0 rated :

Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np! :)

This question has received the maximum number of answers.