This commit is contained in:
pavlov%netscape.com 2000-06-02 06:54:51 +00:00
Родитель ab50efb62b
Коммит a6d056c7d6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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>