Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#7319 closed enhancement (invalid)

[cla] dojox.Sound plugin

Reported by: William Riley Owned by: Adam Peller
Priority: high Milestone: tbd
Component: Dojox Version: 1.1.1
Keywords: dojox sound Cc:
Blocked By: Blocking:

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 (1)

dojox.Sound.zip (122.2 KB) - added by William Riley 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by William Riley

Attachment: dojox.Sound.zip added

comment:1 Changed 11 years ago by Tom Trenka

Resolution: invalid
Status: newclosed

I'm closing this ticket out as "invalid"...

After speaking with Will (the submitter), we're going to instead work on integrating this code into DojoX A/V and base it on Flex using deft; this will be a collaborative effort and should be handled sooner than later.

(i.e. it's not a bad patch but we're going to coordinate our efforts instead.)

--trt

comment:2 Changed 10 years ago by Thomas Bachem

This ticket was opened quite some time ago - has anything happened on better Audio support for Dojo(x) since then?

We're using dojox.FLAudio right now but would love a HTML5 solution for modern browser and iPad/iPhone/iPod platforms.

We could contribute to the further development of this stuff.

Note: See TracTickets for help on using tickets.