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

Hide video and only play audio?


Dear all,

I am using JW Player successfully on my website.
I was wondering if it is possible to only play audio from an .flv file?
The .flv contains audio and video but I want to "hide" the video and only have the audio playing.

Is that possible?

Best,

Dennis

24 Community Answers

JW Player

User  
0 rated :

Just set the height of the player to 20 and specify a control bar on the bottom. Post your player code if you need more help.

JW Player

User  
0 rated :

This worked like a charm (even with a playlist attached), thanks a lot.

JW Player

User  
0 rated :

@Dennis,

You're welcome, enjoy!

JW Player

User  
0 rated :

Hello,
I have a playlists that plays mp3 files and flv files. it works great!

When the file is a mp3, a related photo appears. when it's a flv video file, the video plays in the same location.
however, when the flv files is an audio file, the related photo does not appear.

how to fix this. Thanks

JW Player

User  
0 rated :

The v4.1.52 player displays the preview image while playing an audio-only FLV.

The v3.x players did not display the preview image while playing an audio-only FLV.

JW Player

User  
0 rated :

thanks kLink..

but it seems it's still in development. I already have several people enjoying my playlist (v3.16). I would not want to start changing things and have to deal with known and unknown bugs.

Is it a way to add that feature to v3.x or a quick patch or work around?
thanks so much.

JW Player

User  
0 rated :

Thanks kLink, that's exactly my problem.
as for the solution, i guess some serious headaches are waiting for me since i'm not really a pro at thses things.
I'll check it out and hope for the best :-)

Thank you sir!!!!

JW Player

User  
0 rated :

on myspace i just want to hide the video player.
NOTNOTNOT the music player! :]

JW Player

User  
0 rated :

In version 4 of the player how do I eliminate the video display part if I only want to use mp3 files from an xml playlist? I looked through the flashvars section and it said something about changing the object section. How do I do that? Do I need Flash CS3? Because I don't have any flash file editor - Cant afford it.

JW Player

User  
0 rated :

@Ryan - set the flashvar height = 0
or if you need no playlist, set the overall height to 20 px (the height of the controlbar)

from - *http://code.jeroenwijering.com/trac/wiki/FlashVars* bc.. *height *(400): height of the display (not the entire player!) in pixels.
you can also try some experiments with the wizard - *http://www.jeroenwijering.com/?page=wizard&example=2*

so you can do this without the use of CS3 - but it is also available as a fully functional 30day trial version...

JW Player

User  
0 rated :

is it possible to hide a youtube music video yet still play audio??

JW Player

User  
0 rated :

Set the player height to the height of the controlbar.

20px for the standard skin, 20~60px for other skins.

JW Player

User  
0 rated :

I have a youtube video I uploaded and I only want the audio to play, not the video to be seen, but rather have an image I want to have up of my son's face as a baby. But I want his voice to be heard only form the video. Can someone help? I am totally stuck as to how to do this on youtube.

JW Player

User  
0 rated :

@Francis,

See this thread: *http://www.jeroenwijering.com/?thread=9400*

Since your playlist is mixed MP3s and FLVs, add a bit of code to NOT display the overlaid image when the file type is "mp3".

JW Player

User  
0 rated :

I have tried all the things in this post to get rid of the video display, but it doesn't work properly when you have a playlist :(((( If I set the height to 20 with a playlist I just see the bottom of the playlist (I use playlist=bottom). (also the flashvar height=0 does not work)

:((( is there really no option to say display:none? It would make so much sense to have this.

If someone could help me solve this I would really appreciate it.

Ethan Feldman

JW Player Support Agent  
0 rated :

You should use a javascript playlist with height set to 20

http://www.longtailvideo.com/support/jw-player/23/create-a-javascript-playlist

JW Player

User  
0 rated :

Hello.
My idea is something similar.. i would like to play just audio from youtube...
but just hiding the video is not enough for me...

is it possible to make that video does not downloads from Youtube.. just the audio...
that would be much less traffic, and less buffering...

is it possible?

Ethan Feldman

JW Player Support Agent  
0 rated :

Unfortunately, not. Since we use the YouTube API, it will pull in the video as well. You could always use the Flow plugin though, an set the position to over, and it will just play the audio while the Flow plugin stays on the screen.

Demo – http://www.longtailvideo.com/AddOns/get-examples.html?addon=121&vid=123&currex=1

JW Player

User  
0 rated :

Thanks for fast reply... if you use same api also with Flow plugin, then it will also download video and it wont be any less traffic...
but thanks a lot anyway..

Ethan Feldman

JW Player Support Agent  
0 rated :

Np, it won’t be any extra load for you though, it’s from YouTube’s server, not yours ;)

JW Player

User  
0 rated :

I have the same problem as Ryan. I have a music playlist and I'd like to know how to hide the video player without getting rid of the playlist. I've read andersen's post, but I'm a newb and I have no idea what I have to edit.

Ethan Feldman

JW Player Support Agent  
0 rated :

@ TT, just make the height the size of the controlbar+ playlist. Also can you provide a link? Thanks.

JW Player

User  
0 rated :

I have to say, I read that document on Creating a Javascript Playlist, and it doesn't at all explain how to style the actual video player using the javascript.

- Tells you how to instantiate the javascript files
- Tells you where the CSS is
- Tells you that you need a playlist but not how to feed that playlist to the javascript, or how the javascript knows where it is writing out to.

In other words, where can we see a full working example of an audio-only player, using a playlist, with a visible control bar and no visible playlist.

I've tried using JW Embed code to alter the height of the controlbar, and it looks really bad. There's a bunch of blackspace around the controller and a Play button that superimposes over everything.

The playlist stylesheet would seem to be the solution, but how do I get it to control the actual player or, in my case, playerS on the page? That's missing in the documentation.

Many thanks if someone could post a working example or some hints.

JW Player

User  
0 rated :

Here's my example.

The playlist plays but the CSS styling doesn't do anything.

- Should I not be using JW Embedding? I'm just going by what the download PDF recommends.
- I changed height width values in the CSS file, but nothing changes on the page.
- All the included files, save the local stylesheet, are from the downloaded player or the Doc on Javascript Playlist.


bc.. <html>
<head>
<title>Test</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript" src="/jwplayer/jquery.js"></script>
<script type="text/javascript" src="/jwplayer/jquery.playlist.js"></script>
<link rel="stylesheet" type="text/css" href="/jwplayer/playlist.css" />
</head>
<body id="library">
<div class="content">
<div class="someclass">
<div id="player1">Loading the player ...</div>
<script type="text/javascript">
jwplayer("player1").setup({
flashplayer: "/jwplayer/player.swf",
playlist: [
{
file: "/music/01.mp3",
title: "Song 1",
},
{
file: "/music/02.mp3",
title: "Song 2",
},
{
file: "/music/03.mp3",
title: "Song 3",
},
{
file: "/music/04.mp3",
title: "Song 4",
}
],
});
</script>
</div>
</div>
</body>
</html>


This question has received the maximum number of answers.