Ticket #7319 (closed enhancement: invalid)

Opened 2 years ago

Last modified 3 months ago

[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

dojox.Sound.zip (122.2 kB) - added by psychcf 2 years ago.

Change History

Changed 2 years ago by psychcf

Changed 2 years ago by ttrenka

  • status changed from new to closed
  • resolution set to invalid

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

Changed 3 months ago by thomasbachem

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.