Jump to content
  • Advertisement
Sign in to follow this  

Help pleaseee with AVI display

This topic is 5093 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

I'm using DirectShow to play AVI files .. I have this code when the user clicks on 'Play': m_pVideoWindow->put_Visible(OATRUE); //line-1 m_pGraph->QueryInterface(IID_IMediaControl, (void **)&m_pMediaControl); //line-2 m_pMediaControl->Run(); //line-3 m_pMediaControl->Release(); //line-4 I have this problem now when the user clicks on 'Play' I do not want the video to be shown but want the media to continue running in the background so that I could determine the current position in the AVI by using: m_pMediaSeeking->GetCurrentPosition(&lPos); and then use this 'lPos' for some other purpose .. Is this possible? ... I tried playing with line-1 (removing or placing false) but to no effect .. line-2 is the one which creates the display .. if I remove that , I would not be able to execute line-3, without which I will not be able to determine the current position in the AVI file ... Any hints plz?? ..

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!