Accessing a Plug-In : PlugIn « Development « JavaScript DHTML






Accessing a Plug-In



<HTML>
<HEAD>
<TITLE>Accessing Installed Plug-ins</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
function playVideo() {
 window.document.yourWav.play()
}
function stopVideo() {
 window.document.yourWav.stop()
}
function rewindVideo() {
 window.document.yourWav.rewind()
}
function forwardVideo() {
 window.document.yourWav.forward()
}
function forward() {
 window.document.yourWav.frameBack()
}
function back() {
 window.document.yourWav.frameForward()
}
// --></SCRIPT>
</HEAD>
<BODY>
<H1>A video of the planet yourWav</H1>
<SCRIPT LANGUAGE="JavaScript"><!--
plugins=navigator.plugins
if(plugins["NPAVI32 Dynamic Link Library"]){
 document.write('<EMBED SRC="yourWav.avi" NAME="yourWav" ')
 document.writeln('AUTOSTART="TRUE" WIDTH="350" HEIGHT="240">')
}else{
 document.write('Sorry. Your browser does not have ')
 document.writeln('LiveVideo installed.')
}
// --></SCRIPT>
<FORM>
<INPUT TYPE="BUTTON" VALUE="Start" onClick="rewindVideo()">
<INPUT TYPE="BUTTON" VALUE="Play" onClick="playVideo()">
<INPUT TYPE="BUTTON" VALUE="Frame Forward" onClick="forward()">
<INPUT TYPE="BUTTON" VALUE="Frame Backward" onClick="back()">
<INPUT TYPE="BUTTON" VALUE="Stop" onClick="stopVideo()">
<INPUT TYPE="BUTTON" VALUE="End" onClick="forwardVideo()">
</FORM>
</BODY>
</HTML>

           
       








Related examples in the same category

1. Listing Plug-In Properties
2.Synchronizing Two Plug-Ins
3.Determining Whether the LiveVideo Plug-In Is Installed
4.JavaScript to enumerate and display all installed plug-ins
5.Displaying Plug-In Information
6.Display PDF using plugin
7.Find pluin for Midi
8.Scan through each plug-in by provided parameters
9.Displaying a List of Navigator Plug-Ins
10.Properties of the Plugin Object