Go
Not registered? Sign up!

Player skips after Intro when playing mp3 stream

Google Translate
18 posts | return to the Bug Reports forum | get the rss feed for this thread

Jul. 30, 2008Jason Brady

I have successfully setup the V4.0.46 player to play our MP3 stream from a Shoutcast and IceCast2 streaming server. However, on both of them, the audio would stop/start after the 25 second intro played and the stream switched over to live stream.

Strangly enough, it seems to be related to the bufferlength setting. When I increase the bufferlength value, the length of the stop time would increase, and when decreased, the length of the stop time would decrease.

If you click on pause then play, the problem goes away, until you refresh the page and it plays the intro and starts stop/starting again.

Anyone else have this problem? is this a bug in the bufferlength code?

You can see our test setup at http://kvcr.org/pages/240.asp

Jason

Aug. 01, 2008jc

I'm having the same problem with our Shoutcast stream, and the solution is always to pause+play after the live stream kicks in, or scrub ahead in the buffer. I'd hate to have our listeners do this, so ideally I'd be able to tell the player to buffer enough audio to start with, then skip ahead 2-3 seconds after the 10-second intro to avoid any stuttering.

Aug. 04, 2008Jason Brady

What I've done so far, is split our stream so I have one with the intro, and one without. Then I use the JavaScript API to load the stream without intro after a seperate intro plays (and get a COMPLETE state message).

You could (if you always have the same size intro), is use the JavaScript API to watch the progress bar, and after you know the intro has played (10 seconds in your case), then set the position to 13 seconds and start playing there. This would in effect automatically do it for your listeners.

Aug. 10, 2008jc

Our intro is unfortunately a requirement, but by $deity, I got it to work! Here's the code I used, although I'm sure it's a bit hacky and can be refined a little:function playerReady(obj) {
player = document.getElementsByName(obj.id)[0];
player.addModelListener('TIME', 'monitorIntro');
};

function monitorIntro(obj) {
player = document.getElementsByName(obj.id)[0];
time = obj.position;
if (time > 9.3 && time < 10) {
player.sendEvent('SEEK',12);
}
};
Only now I'm left with a ModelListener that becomes useless after 9.3 seconds but still gets called every 0.1 seconds, and I can't see a way to disable the ModelListener after it's outlived its usefulness. Ideas?

Sep. 11, 2008JeroenW

Sounds like it's time to introduce unSubscribe functionality..

Apr. 09, 2009RaananW

Hi, any known solution to the problem? maybe something new in the new version?

I didn't quite understand the javascript solution, could you post the whole code you used to make it work?... sorry :-)

One last question, how come only a few shoutcasters have this problem?

Jul. 02, 2009Nico

Jason, I can see in your webpage that you solve the problem... Can you tell me how?

Jul. 26, 2009jc

Looks like this has been fixed as of v4.4, with removeListener():

http://developer.longtailvideo.com/trac/ticket/240

Will have to try it out...

Jul. 30, 2009Nico

doesnt work 4 me. Its same problem

Nov. 01, 2009Alejandro T.

Hi, I have the same error, I tried to encode the mp3 intro with various options at the same bitrate but it do not works.

I see the solution from Jason but by now to me is not clear, it seems that play one file and then goes to the real stream, but every one needs is to use the server feature, I try to play in Winamp, and Windows Media with no intro skip problem, is only in this flash player. This night I will try with the shoutcast flash player if there is the same.

My production environment: http://lomasbacano.klan1.com/radio/

Some one knows why this happens at all?

Nov. 01, 2009Alejandro T.

I found some...

If you put bufferlength: 0, the player continue with the stram, but in intervals of 1 sec more or less. Than you pause and play and then goes good.

The intro skip is the same of bufferlength and then plays 1 sec. If the bufferlength is more than 0 sec then wont work good with pause and play "trick".

I rip the audio stream with wget command and will see if there is some rare there.

Mar. 07, 2010didi

Hello I know this is an old post,but I have the same problem :-( anyone found solution why radio stop after intro is finished ?
I can see Jason from first post fix his issue his radio working just fine after intro

Any help is more than welcome

Cheers

Mar. 08, 2010Ethan LongTail

@didi - Can you provide a link to where you are running this?

Mar. 11, 2010jonasty

hello,

I've got the same problem, after the intro the stream just stops, only in winamp it continues to play; but it should run on my website.

Mar. 11, 2010Ethan LongTail

@jonasty - Can you provide a link to where you are running this?

Mar. 11, 2010jonasty

sure:
http://stream.habbobeats.nl:8058/
(shoutcast link)
radio:
http://www.habbobeats.nl/beta/radio.php

Mar. 11, 2010Ethan LongTail

Where is the JW Player on Either of these links? I cannot help with this, sorry.

Mar. 12, 2010jonasty

this tread is about 'shoutcast' on websites, I didn't know that JW player can run those streamings...
I checked out the help, but can't find a way to enter a shoutcast stream; if I enter the shoutcast ip:port, or with an ASX file, it doesn't seem to work (used the site preview thingy)

thanks

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.