how to play a video using visual basic 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rayne
    New Member
    • Feb 2007
    • 9

    how to play a video using visual basic 6

    hi pls help me on how to play a video in full screen using visual basic 6 and how can I unload the screen and load another form after the video stop from playing.
    Another is how can I save a video in a database and then play it whenever I click a button. THanks ver much for your help.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by rayne
    hi pls help me on how to play a video in full screen using visual basic 6 and how can I unload the screen and load another form after the video stop from playing.
    Another is how can I save a video in a database and then play it whenever I click a button.
    You could come fairly close to full-screen by using the Animation control. To get real full-screen I'd guess you need to either use automation to run Windows Media Player, or use DirectPlay. Or look for a third-party control.

    I'm guessing again, but you could probably store a video in a field of type "OLE object". You could also store a link to the video, and store the actual video in a separate file somewhere.

    Comment

    • rayne
      New Member
      • Feb 2007
      • 9

      #3
      Originally posted by Killer42
      You could come fairly close to full-screen by using the Animation control. To get real full-screen I'd guess you need to either use automation to run Windows Media Player, or use DirectPlay. Or look for a third-party control.

      I'm guessing again, but you could probably store a video in a field of type "OLE object". You could also store a link to the video, and store the actual video in a separate file somewhere.
      Thanks for the response. Can you give me a sample code on how to run the windows media player, thanks again.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by rayne
        Thanks for the response. Can you give me a sample code on how to run the windows media player, thanks again.
        I've never used it, or seen any code that does. But if you go to Project | Components and select Windows Media Player (way down the end of the list), then you can easily add a WMP control to your form and have a play with the properties. I note that one of them is DisplaySize, one of the values for which is "3 - mpFullScreen". So this might be what you're after.

        Comment

        Working...