Jump to content
  • Advertisement
Sign in to follow this  
Muzzy A

Seeking in Direct Show

This topic is 2340 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 originally posted asking about how to loop in direct show, but got no response. I looked more and couldn't find anything useful. Then i figured if i can figure how to SEEK through a video, i can just restart the video like that. But this too, I can't figure out how to do either.

MSDN showed something that i couldn't get my head around for some reason and other places i cant find anything useful.

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

Is this the only way to do it in direct show?

Share this post


Link to post
Share on other sites
Advertisement
oh wow that's much better! Thank you dunbar =)

EDIT: Just one question, do I need to add anything special when running this with direct x? D3D9 to be exact. I've got it working perfectly with seeking and such, but when i run it with D3D9 in debug, there's a flicker, and in release mode you dont see it at all.

It seems to me that direct x is clearing it, and thus it never gets seen, or in debug mode where there's fewer fps, you see a flicker. Edited by Muzzy A

Share this post


Link to post
Share on other sites
With the flicker - hard to say.

I would try testing release mode on a few different machines, if it looks ok then you are probably ok.

There is alot that goes on under the hood when an app is running in debug.

Good luck :)

Share this post


Link to post
Share on other sites
i stopped directX from drawing anything and stopped it from clearing the screen, but yet it still flickers. and in release mode i've got it working the same as in debug mode.

my teacher said it is possible to make it draw on top of everything, but he doesn't know how. I know you can draw it in a seperate window and remove the borders to make it look like it's in the window. But i'm actually going to be scrolling the video so that wont work well with the way im scrolling it.

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.

GameDev.net 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!