2

I've got a WCF service that stories media files and returns them to consuming applications in the form of a Stream object. The issue arises when the consuming application wants to stream the media using MediaElement. As you all know, MediaElement doesn't accept Stream objects.

Can I get around this by using a VLC or WMP ActiveX control? Would either of these two controls allow me to play streaming media?

rafale
  • 1,704
  • 6
  • 29
  • 43

1 Answers1

2

Both of those two activex controls support various types of streaming media, but neither will allow you to use a C# Stream object, which is a managed object. Niether of those two activex controls use any managed code at all, as far as I am aware; it is possible that WMP may, but it wouldn't be exposed via the COM interface in any case.

If memory serves, I think you can provide a MediaElement with individual frames (even H.264 frames), so you could possibly extract the stream yourself and feed it into the MediaObject.

taxilian
  • 14,229
  • 4
  • 34
  • 73
  • Hi! Could u point to any link around you said: " , I think you can provide a MediaElement with individual frames (even H.264 frames), so you could possibly extract the stream yourself and feed it into the MediaObject.", please? – NoWar Jan 25 '13 at 10:35
  • Sure can't. I remember seeing something about it, but I haven't looked at it in so long I don't have any links – taxilian Jan 25 '13 at 16:39