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

Audio Only Streaming Image


Streaming an audio-only (MP3) file via RTMP loses its image when I click play. I've tried including the image with the file in the sources as well as outside of the sources and neither (or both) solves the issue. I've also tried with files that have the .MP3 file ending and with those that don't. I've seen other questions regarding this on this site and the solution was to place your image outside the player and trigger the API call to play the video with onclick. This seems to be a hack. Is there an actual solution to this or is it a known issue that images do not work with streaming audio-only files?
JS:
jwplayer("player").setup({
sources:
[
{ file: "rtmp://domain:1935/vod/MP3:file.MP3", image: "poster.jpg"},
{ file: "http://domain:1935/file.MP3/playlist.m3u8", image: "poster.jpg"}
],
image: "poster.jpg",
width: 640,
height: 540
});

5 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

Its interesting that your jpg file disappears, not sure why this happens. You can try creating two separate sources. one for the stream and one for the image. That would allow the image to stay in place.

Please let me know if that works for you.

Randy

zoller.eli

User  
0 rated :

Do you mean like this?

sources:
[
{ file: "rtmp://domain:1935/vod/MP3:file.MP3", image: "poster.jpg"},
{ file: "http://domain:1935/file.MP3/playlist.m3u8", image: "poster.jpg"},
{image: "poster.jpg"}
],

This does not work

Randy

JW Player Support Agent  
0 rated :

Hello Zoller,

After looking over some material, I recommend that you simply build an audio-only player:
http://support.jwplayer.com/customer/portal/articles/1430255-audio-only-streaming and place an image above it.

That might help,
Randy

zoller.eli

User  
0 rated :

Thanks Randy!
I had seen that article and was wondering if there was a built in solution. I will place the image outside the player.
Thanks for your help!

Randy

JW Player Support Agent  
0 rated :

Hello Zoller,

At the time no but potentially in the future.

Kindly,
Randy

This question has received the maximum number of answers.