Hello Everyone,
I'm trying to play a video using a custom IMediaSource. The nework stream I receive is encoded either in MPEG2 or H264 (not under my control).
Here is how I create the MediaStreamSource:
var videoDescr = new VideoStreamDescriptor(VideoEncodingProperties.CreateMpeg2());_source = new MediaStreamSource(videoDescr);
But then MediaElement.MediaFailed event is then fired on play, with the following details:
MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0xC004F011
If I replace the CreateMpeg2 line with CreateH264 (and of course change the video Stream), it works.
I could not find any information about the 0xC004F011 error code, does someone have any?
Also during my Internet search I read that MPEG2 decoders are not provided anymore with Windows 8.
Does that mean that to be able to decode MPEG2 video stream on a Surface RT I'll have to provide my own decoder with my app?
Any information about MPEG2 and Windows Store would be greatly appreciated.
Many thanks in advance,
Bruno
No comments:
Post a Comment