Detection of video play
-
Hi, Could anyone tell me how to detect the play of a video file (any video file like AVI, WMV, MPEG etc...)? If any application (like RealPlayer or Windows Media Player) plays the video file, my application should recieve a notification. Thanks in advance, Pavan
Regards, Pavan
-
Hi, Could anyone tell me how to detect the play of a video file (any video file like AVI, WMV, MPEG etc...)? If any application (like RealPlayer or Windows Media Player) plays the video file, my application should recieve a notification. Thanks in advance, Pavan
Regards, Pavan
There's no way to do this. There is no notification event that gets fired by anything when a video file is played. What are you trying to do with this?
Dave Kreskowiak Microsoft MVP - Visual Basic
-
There's no way to do this. There is no notification event that gets fired by anything when a video file is played. What are you trying to do with this?
Dave Kreskowiak Microsoft MVP - Visual Basic
Thanks a lot for your reply. Purpose: On detecting a video play, I have to set the preferred resolution of the screen automatically for the best view. Can we hook on directx dll and try to get a notification when DirectX starts Rendering Video? I heard of injecting code into third party DLL's but I have never worked on it. Will this idea work out for detecting the video play? Please help me.
Regards, Pavan
-
Thanks a lot for your reply. Purpose: On detecting a video play, I have to set the preferred resolution of the screen automatically for the best view. Can we hook on directx dll and try to get a notification when DirectX starts Rendering Video? I heard of injecting code into third party DLL's but I have never worked on it. Will this idea work out for detecting the video play? Please help me.
Regards, Pavan
No, this won't work because DirectX isn't used to play video in all cases. There is simply no reliable way to tell when video is being played by any player. And changing screen resolution is a VERY bad idea. If you change the screen resolution, the icons on the desktop get rearranged. Messing with system-wide settings for a single application is considered very bad practice. -- modified at 8:15 Thursday 10th August, 2006
Dave Kreskowiak Microsoft MVP - Visual Basic
-
No, this won't work because DirectX isn't used to play video in all cases. There is simply no reliable way to tell when video is being played by any player. And changing screen resolution is a VERY bad idea. If you change the screen resolution, the icons on the desktop get rearranged. Messing with system-wide settings for a single application is considered very bad practice. -- modified at 8:15 Thursday 10th August, 2006
Dave Kreskowiak Microsoft MVP - Visual Basic