Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO HANDLE VIDEO PLAYING BY MCI????

Status
Not open for further replies.

give2get

Programmer
Oct 15, 2002
8
JP
I'm making a small video player. I used api: sendMCIstring,
it work very well, but it display video on itself window. I want it appears on my own dialog. What should I do? Please tell me what api(s) I should use.
Thanks
 

Check out the hWndDisplay and UsesWindows of the MMC/MCI.

Sample...

[tt]
Private Sub Form_Load()

MMC.Notify = False
MMC.Wait = True
MMC.Shareable = False
MMC.DeviceType = "AVIVideo"
MMC.FileName = "C \Program Files\Microsoft Visual Studio\Common\Graphics\Videos\download.avi"
MMC.Command = "Open"
MMC.hWndDisplay = Picture1.hWnd
MMC.Command = "Play"
MMC.UsesWindows

End Sub

[/tt]

I hope this helps, good luck.

 
Vb5prgrmr ,
I'm using api instead of MMC(multimedia control AcitveX).

My problem is how to get and pass the MCI video handle into my win by all api, no ActiveX
Thank you, anyway
 

I then belive we would have to see more of your code to be able to help you or as you can see from my example that uses the MMC/MCI control, I pass the hWnd of a picture box to get it to display inside of my program. If I did not, it would spawn its own window. Perhaps you need to look at the hwndCallback closer to see if that is where you need to place your hWnd to the object you want to display to video in.

I hope this helps and good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top