We are trying to play an H.264 stream with MediaStreamSource on a WP7 emulator. But met with error 3100 from the video:
In the OpenMediaAsync override method of Mp4MediaStreamSource, videoStreamAttribute VideoFourCC is set to "H264":
Dictionary<MediaStreamAttributeKeys, string> videoStreamAttributes = new Dictionary<MediaStreamAttributeKeys, string>(); videoStreamAttributes[MediaStreamAttributeKeys.VideoFourCC] = "H264"; this.videoStreamDescription = new MediaStreamDescription(MediaStreamType.Video, videoStreamAttributes);
But GetSampleAsync was not called at all after OpenMediaAsync, MediaElement simply returned the error "3100 An error occurred", there is no other information. And the same error, even if we set the CodecPrivateData attribute.
source share