views:

173

answers:

2

I need help with my VB6 app. I have a form with a reference to wmp.dll (Windows Media Player 9 ocx). I can play many file extensions like Mpg mpeg , avi, qt and others, but I want to play dvd files. I'm using the following code:.

wmp.url = "D:\VIDEO_TS\VTS_01_0.VOB"

This command work in all files, but not for DVD files.

I've also tried using:

commondialog1.showopen
wmp1.url=commondialog1.filename
wmp1.controls.play

This doesn't work.

The only function that works is:

wmp1.showplayer(url as string)

But this shows the media player object, and plays the file. I want to see the movie in my form not in the mediaplayer.

Can some body help me? Thanks so very much.

(I'm from Argentina and speak little English, so please excuse me all.)

A: 

Have you tried accessing the DVD like this:

dvd://E:\

Where E:\ is the DVD drive on your computer?

George Edison
A: 

See Windows Media Player SDK. Particulary it may be worth to pay attantion to DVD Object.

VitalyVal