I'm implementing a custom IMFByteStream
to stream video over a network, but the problem is that I cannot pass its object to the source resolver to create media source, because the CreateObjectFromByteStream
is returning an error:
0xc00d36ee : The provided bytestream was expected to be seekable and it is not.
Of course my custom byte stream is not seekable because seeking over the network is not possible. So the question is how can I create a media source using a non-seekable byte stream? My final destination is to create a IMFSourceReader
object. The type of the source content is ASF.
Your failure supposedly comes from:
You might try media source properties, but it more looks like a mandatory requirement that the byte stream is seekable. One thing you can do to work this around is to indeed mark the stream implementation as seekable, and implement a wait once there is a read request from position which is not yet available.