Поделиться через


Enabling Users to Issue DVD Commands

 
Microsoft DirectShow 9.0

Enabling Users to Issue DVD Commands

This component is available for use in the Microsoft Windows 2000, Windows XP, and Windows Server 2003 operating systems. It may be altered or unavailable in subsequent versions.

To enable users to control the DVD player, you need to provide a UI with buttons for issuing DVD commands such as "Stop" and "Play." The following code example shows how to hook up basic HTML buttons to the MSWebDVD object methods.

<INPUT ID=button1 NAME="button1" TYPE=button VALUE="Play" onClick='Play();'>
<INPUT ID=button2 NAME="button2" TYPE=button VALUE="Pause" onClick='Pause();'>

<SCRIPT LANGUAGE="JScript">
function Play(){
     DVD.Play();    
}

function Pause(){
  DVD.Pause();
}

</SCRIPT>