video - IMFByteStream QueryInterface to get IMFAttributes -


i wanted open video file using imfsourceresolver returned byte stream type of given url unsupported. did open video irandomaccessstream, convert imfbytestream , use createobjectfrombytestream() imfmediasource.

according link createobjectfrombytestream says if mf_e_unsupported_bytestream_type returned specify mime type setting mf_bytestream_content_type attribute on byte stream. link mf_bytestream_content_type says attribute value, query byte stream object imfattributes interface. not figure out how that.

is possible imfattribute interface imfbytestream? if how? , should values mf_bytestream_content_type?

from msdn (http://msdn.microsoft.com/en-us/library/windows/desktop/aa374773%28v=vs.85%29.aspx)

to find out whether byte stream supports attributes, query byte stream object imfattributes interface.

according info, byte-streams support imfattributes, others don't. if query imfbytestream imfattributes , returns e_nointerface mean yours doesn't.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -