-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
streaming music #378
Comments
Same question, is it possible to stream music with howler? |
You should be able to do it like this: var stream = new Howl({
src: ['...'],
ext: ['mp3'],
autoplay: true,
html5: true
}); Note that you must use HTML5 Audio to stream, it isn't possible with Web Audio since the full audio must be loaded and decoded first. |
Thank you, that worked. Edit: stopping the sound apparently doesn't work for streams started playing with the |
Thanks, the stopping issue has been fixed in bb903a6. As for knowing the format, there's no way I'm aware of getting that on the client. There's certainly ways to determine that on the server side though. |
Friend, I have an icecast server, how can I use your Howler.js to create a small radio station in my workplace? |
goldfire, please, can you show to us working example of streaming? I'm write understand that we need to upload data to |
@goldfire Is it possible to call a pls file to stream radio stations ? |
@Fredbam, ah yeah, this works well, at least with the current version, #OhHellboyYeah! 😻 I was also pleasingly surprised, as I was already worried I'd to parse that myself, but I think that's just HTML5-Audio supporting .pls! 😹💦 |
I was so far successful using howler to play either local or remote files, but didn't manage to play music from a streaming source, i.e. internet radio.
Is this not supported or could I get to see a working example for that?
The text was updated successfully, but these errors were encountered: