Jump to content
  • Advertisement
Sign in to follow this  
lonewolff

Media Foundation Syncronous Playback

This topic is 1257 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
Advertisement

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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!