It took three days to add dshow to the game and record your experiences so that you can easily view your own shoes.
1. Video mixing Renderer 9, which uses direct3d 9 internally, requires Windows XP or a higher operating system. Basically 100% of game users meet this condition, so I chose it as a filter.
2. The rendering modes supported by video mixing Renderer 9 are javaswed, windowless, and renderless. We recommend that you use windowless, so that you do not need to use ivideowindow to set the WINDOWS Message flow and bind the parent window as with javaswed. However, wm_paint, wm_displaychang, and wm_size (or wm_windowposchanged) must be processed.
3. Video mixing Renderer 9 does not support real full screen, that is, the d3d exclusive mode (during my use, the exclusive mode only has sound and no image ). One solution is to use the renderless rendering mode, but you need to write the image filter yourself. Another solution is to use a pseudo full screen when playing a video, and then switch to the real full screen.
4. In the real full screen mode, I try to create a pseudo full screen window in wed mode. This solution works with a single monitor. However, in the case of multiple monitors, when the focus is switched to another monitor, the video window is automatically adjusted, resulting in no longer a pseudo full screen.
DirectShow usage experience