Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error(s) when playing live streams? #54

Open
theunknownartisthour opened this issue May 6, 2014 · 2 comments
Open

Uncaught Error(s) when playing live streams? #54

theunknownartisthour opened this issue May 6, 2014 · 2 comments

Comments

@theunknownartisthour
Copy link

From line 48 of adapterWebAudio.js
this.audio.addEventListener( 'progress', function ( e ) {
if ( e.currentTarget.duration ) {
_this.progress = e.currentTarget.seekable.end( 0 ) / e.currentTarget.duration;
}
});

Causes an Uncaught IndexSizeError: Failed to execute 'end' on 'TimeRanges': The index provided (0) is not less than the object's length (0).

This occurs when I use sources like shoutcast and icecast.
This is fixable if you nest this condition if(e.currentTarget.seekable.length>0) inside the function.
This doesn't appear to be a problem in Chrome, it just runs through the error anyway. However, I'm guessing/hoping that a similar type of error for the mozilla adapter is preventing firefox from using live mp3 streams (it appears firefox can play and visualize local mp3's just fine).
Awesome project though I'm hooked on the demo.

@willem010
Copy link

same issue on my stream. (and i used the same solution.. :) )

when adding a >0 condition Chrome runs just fine,
IE doesnt show anything, but at least the stream audio plays (maybe due to combo with audio-elements? ) and the same goes for mobile devices.

firefox is a different problem tho.
adding dancer actually disables the stream playing which makes it not usuable for now.

great project
hope to see some fixes soon!

@likethemammal
Copy link

Getting this error in Chrome 37.0.2062.94 too. Not actually affecting playback or visualization but it worries me just seeing it.

Like the others mentioned, great project! Keep up the awesome work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants