Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Detection of video play

Detection of video play

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pavan g
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • P pavan g

      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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      P 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        P Offline
        P Offline
        pavan g
        wrote on last edited by
        #3

        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

        D 1 Reply Last reply
        0
        • P pavan g

          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

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          P 1 Reply Last reply
          0
          • D Dave Kreskowiak

            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

            P Offline
            P Offline
            pavan g
            wrote on last edited by
            #5

            Thanks Dave for your reply.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups