Cyberia
11th September 2003, 02:45
I have discovered an apparent problem with seeking in WMP when loading scripts through MPEG2DEC3. It may be related to why WMP9 does not seek in this situation, but it is certainly happening when using an WMP ocx in VB.
This has been an issue for me for a while, but today I isolated it down to the WindowlessVideo property of a WMP ocx. If WindowlessVideo is set to TRUE, the WMP seek bar is not enabled. Now, before you assume that this is a VB issue, let me say that the issue does NOT occur when playing scripts that open via AviSource or DirectShowSource. ONLY scripts that load MPEG2DEC3 experience this issue.
I have coded a test program that clearly demonstrates the issue. Again, it ONLY occurs when using MPEG2DEC3. You can download it here: WindowlessVideo Test (http://home.insightbb.com/~cyberia-1/WLVTest/WLVTest.zip)
More information on WindowlessVideo can be found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerwindowlessvideo.asp
Basically, (I think) it displays the video in the current window rather than creating a new window for the video. By displaying into the current window, you can overlay objects over the video, which is exactly what I am using it for, so please don't suggest setting WindowlessVideo=FALSE.
This has been an issue for me for a while, but today I isolated it down to the WindowlessVideo property of a WMP ocx. If WindowlessVideo is set to TRUE, the WMP seek bar is not enabled. Now, before you assume that this is a VB issue, let me say that the issue does NOT occur when playing scripts that open via AviSource or DirectShowSource. ONLY scripts that load MPEG2DEC3 experience this issue.
I have coded a test program that clearly demonstrates the issue. Again, it ONLY occurs when using MPEG2DEC3. You can download it here: WindowlessVideo Test (http://home.insightbb.com/~cyberia-1/WLVTest/WLVTest.zip)
More information on WindowlessVideo can be found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerwindowlessvideo.asp
Basically, (I think) it displays the video in the current window rather than creating a new window for the video. By displaying into the current window, you can overlay objects over the video, which is exactly what I am using it for, so please don't suggest setting WindowlessVideo=FALSE.