pavlov%netscape.com a9bf7e8279 actually add the sound test
git-svn-id: svn://10.0.0.236/trunk@40969 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 05:01:29 +00:00

21 lines
561 B
HTML

<html>
<head>
<title>Sound Service Play Example</title>
</head>
<body>
<script>
var filespec = Components.classes["component://netscape/filespec"].createInstance();
filespec = filespec.QueryInterface(Components.interfaces.nsIFileSpec);
filespec.URLString = "file://res/samples/test.wav";
var sample = Components.classes["component://netscape/sound"].createInstance();
sample = sample.QueryInterface(Components.interfaces.nsISound);
</script>
<form name="form">
<input type="button" value="Play Sound" onclick="sample.Play(filespec);">
<form>
</body>
</html>