make this test actually work
git-svn-id: svn://10.0.0.236/trunk@71347 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
695763bc3d
commit
8bcfabfa3d
@ -5,16 +5,16 @@
|
||||
|
||||
<body>
|
||||
<script>
|
||||
var uri = Components.classes["component://netscape/uri"].createInstance();
|
||||
var uri = Components.classes["component://netscape/network/simple-uri"].createInstance();
|
||||
uri = uri.QueryInterface(Components.interfaces.nsIURI);
|
||||
uri = "resource:/res/samples/test.wav";
|
||||
uri.spec = "http://moocow.mcom.com/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(uri);">
|
||||
<input type="button" value="Play Sound" onclick="sample.Play(uri);">
|
||||
<form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user