play mp3 from stream (not from file)

  • Thread starter Thread starter Mehdi
  • Start date Start date
M

Mehdi

I'm looking for a way to play a mp3 file from a stream, not from a file.

I looked at DirectX
the Audio class from the AudioVideoPlayback assembly can play only from a
file...
And DirectSound is not able to play mp3 files, but it can open streams... :(

Does anybody know any other ways?

One way would be to use the Windows Media Player ActiveX control.
 
Hello,

I'm looking for a way to play a mp3 file from a stream, not from a file.

I looked at DirectX
the Audio class from the AudioVideoPlayback assembly can play only from a
file...
And DirectSound is not able to play mp3 files, but it can open streams... :(

Does anybody know any other ways?

Thanks
Dirk
 
Dirk,

You should be able to use DirectX to play an MP3 from a stream. From
what I recall, playing anything in DirectX requires the creation of a filter
graph. All you would have to do is take the part of the graph that gets the
content from a file and replace it with a stream.
 
Hello,

are there any examples for this out there?

Dirk

Nicholas Paldino said:
Dirk,

You should be able to use DirectX to play an MP3 from a stream. From
what I recall, playing anything in DirectX requires the creation of a
filter graph. All you would have to do is take the part of the graph that
gets the content from a file and replace it with a stream.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dirk Reske said:
Hello,

I'm looking for a way to play a mp3 file from a stream, not from a file.

I looked at DirectX
the Audio class from the AudioVideoPlayback assembly can play only from a
file...
And DirectSound is not able to play mp3 files, but it can open streams...
:(

Does anybody know any other ways?

Thanks
Dirk
 
Dirk,

I don't have an example offhand. I would google for "direct show filter
graph" and start there. You should be prepared for a good amount of COM
interop work as well in order to do this.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dirk Reske said:
Hello,

are there any examples for this out there?

Dirk

Nicholas Paldino said:
Dirk,

You should be able to use DirectX to play an MP3 from a stream. From
what I recall, playing anything in DirectX requires the creation of a
filter graph. All you would have to do is take the part of the graph
that gets the content from a file and replace it with a stream.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dirk Reske said:
Hello,

I'm looking for a way to play a mp3 file from a stream, not from a file.

I looked at DirectX
the Audio class from the AudioVideoPlayback assembly can play only from
a file...
And DirectSound is not able to play mp3 files, but it can open
streams... :(

Does anybody know any other ways?

Thanks
Dirk
 
Dirk,

You should be able to use DirectX to play an MP3 from a stream. From
what I recall, playing anything in DirectX requires the creation of a filter
graph. All you would have to do is take the part of the graph that gets the
content from a file and replace it with a stream.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




I'm looking for a way to play a mp3 file from a stream, not from a file.
I looked at DirectX
the Audio class from the AudioVideoPlayback assembly can play only from a
file...
And DirectSound is not able to play mp3 files, but it can open streams...
:(
Does anybody know any other ways?
Thanks
Dirk- Hide quoted text -

- Show quoted text -

Seems you require a MP3 filter graph.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top