This project has moved and is read-only. For the latest updates, please go here.

Playing stream data from Internet URI links

Jan 13, 2014 at 3:37 PM
Hi All,
I'm trying to accommodate stream data from Internet protocol URI links (ie http://..., mms:// , etc).
I also need to set DeviceNumber property on the output (this is a hard requirement for the app)

I'm currently using these classes: Mp3FileReader, WMAFileReader, WaveFileReader.
But these classes do NOT accept Internet protocol URI links. (unless I'm wrong)

The basic gist of what I do now is this
WaveStream mediaFileReader = new Mp3FileReader(fileName);
WaveChannel32 inputStream = new WaveChannel32(mediaFileReader);
WaveOut outputDevice = new WaveOut()
outputDevice.DeviceNumber = 1;
So my question is,
is there another class (WmaStream?), that will accept Internet protocol URI links; AND allow me to set a DeviceNumber property on the output?
And if there is a way, any pointer to sample code would be appreciated.
Jan 15, 2014 at 12:37 PM
try with MediaFoundationReader
Jan 16, 2014 at 9:09 AM
Thanks Mark. I'll look into that class.