Advertisement Jump to content
Sign in to follow this  

Media Foundation Syncronous Playback

This topic is 1416 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Guys,


I am learning how to use the Microsoft Media Foundation API at the moment (synchronous at this point).


At this stage I have created one big in-line file, so I can get the right process happening and best understanding of what is going on. Later once it works, I'll break it back down into a nice class.


At this stage I am up to the point where I have created everything all the way to connecting up the source and sink.


Error handling tells me that all is good up to there, which is great.


My question is, how do I start playback? I am using synchronous mode so, I know that I'll have to manually loop the playback. But I am lost as to how to even start the playback as all of the MSDN points to the async mode (which I'll investigate once Sync mode is working).


Any advice would be awesome :)


Thanks in advance.

Share this post

Link to post
Share on other sites

Oooh! Just worked it out cool.png


I needed to implement IMFMediaSession* pSession and tie it to the topology that I previously created.


From there it was a matter of calling pSession->Start()

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!