示例#1
0
        /// <summary>
        /// Creates a source reader based on a byte stream
        /// </summary>
        /// <param name="byteStream">The byte stream</param>
        /// <returns>A media foundation source reader</returns>
        public static IMFSourceReader CreateSourceReaderFromByteStream(IMFByteStream byteStream)
        {
            IMFSourceReader reader;

            MediaFoundationInterop.MFCreateSourceReaderFromByteStream(byteStream, null, out reader);
            return(reader);
        }