Sign in to follow this  
Followers 0
Champak

New DVD object

2 posts in this topic

I'm tired of messing with the wmp object for dvd, so I found MSVidWebDVD. But I don't know how to activate it as an object in autoit. Some help please?

Here is the vb code"

Option Explicit
' Create the DVD and Adm objects. Be sure to create the DVD using
' WithEvents to access object-specific events.
Dim WithEvents oVidWebDVD As MSVidWebDVD
Dim oVidWebAdm As MSVidWebDVDAdm

' Build the graph to prepare for playback. Does not start playback.
Sub BuildGraph()
   ' First insert the DVD Navigator filter.
   oVideoControl.View ("DVD:")

   ' Then enable closed-captioning feature. 
   ' All features must be added before Build or Run methods.
   Call AddCC

   ' Next build the graph.
   oVideoControl.Build

   ' Finally, instantiate the control objects.
   Set oVidWebDVD = oVideoControl.InputActive
   Set oVidWebAdm = oVidWebDVD.DVDAdm
 End Sub

' Start playback from Play button.
Sub cmdRun_Click()
   oVideoControl.Run
End Sub

I believe this is the best page to get basic initialinfo:

http://msdn.microsoft.com/en-us/library/ms782600(VS.85).aspx

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Forgot about this post, here is the solution to get it running. After this, you call the methods/functions you need.

$oDVD1 = ObjCreate("MSVidCtl.MSVidCtl.1")
$oDVD2 = ObjCreate("MSVidCtl.MSVidWebDVD.1") 
$oDVD3 = ObjCreate("MSWebDVD.MSDVDAdm.1");Not needed unless you need administration functions


$oDVD1.View ("DVD:")
$oDVD1.Build
$oDVD2 = $oDVD1.InputActive;Get msvidwebdvd video functions working
$oDVD3 = $oDVD2.DVDAdm;Not needed unless you need administration functions
$oDVD2.DVDDirectory = "G:\\VIDEO_TS";Not needed unless you have multiple Roms
$oDVD1.Run
Edited by Champak

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0