Sha256: 0582513fc5a9f12492e4d49113144899e6e7b11199feef964e09fb445eab4832
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
<html> <head> <title>Sound Service Play Example</title> </head> <body> <script> var url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(); url = url.QueryInterface(Components.interfaces.nsIURL); url.spec = "resource:/res/samples/test.wav"; var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); sample = sample.QueryInterface(Components.interfaces.nsISound); </script> <form name="form"> <input type="button" value="Play Sound" onclick="sample.play(url);"> <form> </body> </html>
Version data entries
4 entries across 4 versions & 2 rubygems