jsantell / dancer.js

high-level audio API, designed to make sweet visualizations
jsantell.github.com/dancer.js
MIT License
2.11k stars 209 forks source link

using different runtime than soundmanager #14

Open fatshotty opened 12 years ago

fatshotty commented 12 years ago

Hello there,

I'd like to use your dancer in my project. I wonder, has it been designed only for working with soundmanager? Is it possible to include a different runtime such as JWPlayer or JPlayer?

Thanks

jsantell commented 12 years ago

Right now, soundmanager2 is only used for the flash fallback -- in the new branch audioelement, this will implement tying dancer.js into any audio element, and controlled through the element's controls, or any other arbitrary player that uses an audio element

jsantell commented 12 years ago

With commit c01986643f587e8900dbda9b23695594509649d7, you can now use any audio element as a source -- SM2 is only used for the flash fallback. Right now the flash adapter is only using SM2 -- would it be of any use for there to be an explicit useAdapter() method so that you may specify your own adapter (being a jWPlayer, Jplayer adapter)? Also, I do not believe (could be wrong) that those flash players expose the audio data of what they're playing...