How to play IMFMediaSample in media foundation?

大城市里の小女人 提交于 2019-12-02 02:04:57

问题


I am able to extract samples out of a video using the readSample method. Now how can I play the data present in those samples? Or how to play IMFSample ?


回答1:


Sample IMFSample is a block of data, such as video frame or a chunk of audio sequence. This is a tiny piece of data to be played alone. The API addresses more sophisticated playback scenarios, such as where playback is a session where one or more streams are streamed in sync.

Be sure to check Getting Started with MFPlay on MSDN to see how playback is set up with Media Foundation.



来源:https://stackoverflow.com/questions/9719338/how-to-play-imfmediasample-in-media-foundation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!