Writing a game, and I would like some videos in the middle. In windowed mode, DirectShow classes work great and are easy to use. But when the game is full-screen, I can not get DirectShow to show full-screen mode.
Basically, when my D3D device is initialized, I canβt display the video, even with IVideoWindow.put_Fullscreen (true). I guess DirectShow just can't do full screen mode with a D3D device.
So, I tried to free my D3D device while the video is playing and reinitializing it again. This seems to work very well, but when DirectShow plays full screen, it seems that it stole the focus from the main application window and did not return it when it was done. This causes DirectInput to not be able to retrieve the device again after this (gives me the "Access denied" error code). I tried SetForegroundWindow () before the acquisition, but this does not fix it, so this may not be a problem.
In any case, the long story, all I want is a full-screen video in the middle of my D3D application. Is there a preferred way to do this? Can I do this by getting DirectShow on my main D3D surface? I think this will fix the problems that I have.
delphi directx directshow
Trespassersw
source share