views:

485

answers:

1

I wonder that MediaElement (from WPF) components are capable of playing and buffering mp3 streams.

I need play mp3 memory stream(not mp3 file) using MediaElement of WPF ,would you please tell me how to do it .

thank a lot

A: 
MemoryStream s;
...

MediaElement m = new MediaElement();
m.SetSource(s);
Mike Blandford
But this class is in System.Windwos.dll that is belong to Silverlight not WPF(in PresentationFramework.dll).they have the same class name and the Wpf version does not support this method.
hellojacktom
It won't work when I reference the same class name(and the same namespace)in my WPF project.
hellojacktom