Ticket #7319 (closed enhancement: invalid)
[cla] dojox.Sound plugin
| Reported by: | psychcf | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | tbd |
| Component: | Dojox | Version: | 1.1.1 |
| Severity: | normal | Keywords: | dojox sound |
| Cc: |
Description
I've ported Psych Desktop's sound API to dojox. I've attached a zip of the files. It contains the sound class, the flash swf+source, and a test page.
It abstracts between flash, HTML5 <audio>, and <embed> to play the sound.
Example usage:
dojo.require("dojox.Sound"); //MUST BE DONE BEFORE THE PAGE LOADS!!! (ex, in a <script> tag inside <head>)
var sound = new dojox.Sound({src: "/path/to/my/sound.js"});
sound.play()
sound.pause()
sound.stop()
if(sound.capabilities.id3)
console.log("this sound backend has ID3 support!");
console.log(sound.duration(), sound.position(), sound.id3());
//etc...
Attachments
Change History
Note: See
TracTickets for help on using
tickets.