Hi everybody,
does someone know if it’s possible to play back web based audio streams with juce?
I’ve tried to open and play back:
http://audiodemo.stream.flumotion.com/flumotion/audiodemo/64.asf.asx
and yorkshire radio: http://streaming.planetwideradio.com:8085 or http://streaming.planetwideradio.com:8085/listen.pls
I was able to play both of them using AIMP² which uses BASS afaik.
I tried it this way:
URL url("http://streaming.planetwideradio.com:8085");
InputStream* stream = url.createInputStream(false); // or true...
if (stream)
{
AudioFormatManager formatManager;
formatManager.registerBasicFormats();
AudioFormatReader* reader = formatManager.createReaderFor(stream);
if (reader)
{
AudioFormatReaderSource source(reader, true);
m_transportSource.setSource(&source, 1024, reader->sampleRate);
m_transportSource.start();
}
}
, but didn’t manage to get a valid reader back from the formatManager.
Any ideas on how this could work? Or is it just not supported by Juce atm?
Many thanks,
Myke.