Jump to content

New DVD object


Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...