jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

jPlayer fails to play stream after fallback transition with Icecast2 #285

Open Tobiaqs opened 9 years ago

Tobiaqs commented 9 years ago

Hello,

I have a streaming server setup with Icecast2. This diagram displays its configuration.

diagram listenmy

Here's my problem: when I'm listening to /live (or /stream) using jPlayer's Flash fallback and start streaming on /live, I hear short bits of audio and then silence. This repeats indefinitely. Matching up /autodj's bitrate/sample rate with /live's doesn't make any difference.

In contrast, Muses can play the stream correctly. It shows a play event message in the title bar as soon as the stream changes.

I hope this gets fixed. I just built an entire framework around jPlayer and it'd be a same if I'd have to switch to something else. jPlayer works so well!

vlinder commented 9 years ago

Sounds like a duplicate of #197? Try our altered code and mark as duplicate if that fixes the problem. Would be great if happyworm came around to fixing that issue properly.

Tobiaqs commented 9 years ago

Doesn't fix it, sadly.

Tobiaqs commented 9 years ago

Sound visualisation

Here's a WAV recording of my sound card: http://cdn.appiso.de/recording_sc.wav

Again, this only happens when Flash is used.

I tried enabling error/warning messages but they don't help.

EDIT: Compiled Flash module with debug = true and it seems cpr starts counting backwards once the stream switches. Everytime a bit of audio is played, cpr increases a little, then starts counting down again. ct freezes during silence.

ghost commented 9 years ago

I am experiencing the exact same bug, I'm using Icecast 2.4.1, I have 2x mounts, 1x for radio and another for live dj. When the live dj mount kicks in its fine, when the DJ finishes and it fallbacks to radio and the stream doesn't play properly, html works ok, jplayer flash is causing the problem across all browsers.