Results 1 to 4 of 4

Thread: How to open Video File using MMControl in vb

  1. #1
    Join Date
    Nov 2009
    Posts
    53

    How to open Video File using MMControl in vb

    Hello there,

    I have developed a program using the VB 6 and the problem is with the opening of video file. I don't know how to open a video file using the MMControl. I just want program to work like this"As soon as i click on the open button, it will open the file and when i will click on the play button then it will play the same. But i could not find any solution to do so. Please help me with the same so that i can complete project on time.

    A help may be appreciated

  2. #2
    Join Date
    Apr 2008
    Posts
    2,139

    Re: How to open Video File using MMControl in vb

    Hey buddy,

    Just add the given code below to see that the path which you have defined is valid or not.And also check for the file extension. Hope it will work
    Code:

    Code:
    1.Private Sub Button1_Click()
    2.CommonDialog.ShowOpen
    3.MMControl.(Name of the file) = CommonDialog.(Name of the file)
    4.debug.print MMControl.(Name of the file)
    5.MMControl.Wait = True
    6.MMControl.Command = "Open"
    7.End Sub

  3. #3
    Join Date
    May 2008
    Posts
    4,570

    Re: How to open Video File using MMControl in vb

    Hey,

    I have searched a lot for you and finally i came to this result. Hope that it will work for you so make the changes according to you requirement and run your application.

    Code:
    Private Sub Button1_Click()
    MMControl.Command = "Play"
    End Sub
    Private Sub Button2_Click()
    CommonDialog.ShowOpen
    MMControl.Name = CommonDialog.Name
    Debug.Print MMControl.Name
    MMControl.Wait = True
    MMControl.Command = "Open"
    End Sub
    Private Sub Form_Load()
    frmVideo.Caption = MMControl.Name
    End Sub

  4. #4
    Join Date
    May 2008
    Posts
    3,316

    Re: How to open Video File using MMControl in vb

    Multimedia is certainly a hot topic, because it lets us create an integrated environment of video, sound, still pictures, and text. VBScript gives us access to multimedia through custom controls such as the media control interface (MCI) multimedia control. Let's take advantage of this and create a new Web page, multimed.htm. As we've seen, the multimedia control consists of a set of buttons much like you would see on a CD player.

    Thanks.

Similar Threads

  1. Can I open video file in Samsung s 3310
    By Naruto Uzumaki in forum Portable Devices
    Replies: 7
    Last Post: 09-12-2011, 04:50 AM
  2. Replies: 5
    Last Post: 24-06-2011, 10:26 PM
  3. How to open a .mod video file on Macbook Pro
    By Macbeth in forum Portable Devices
    Replies: 5
    Last Post: 13-11-2010, 07:34 AM
  4. Replies: 2
    Last Post: 07-02-2010, 12:48 AM
  5. Replies: 2
    Last Post: 06-02-2010, 05:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,162,879.42397 seconds with 17 queries