Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play local files #12

Closed
jsantell opened this issue Jun 7, 2012 · 11 comments
Closed

Play local files #12

jsantell opened this issue Jun 7, 2012 · 11 comments

Comments

@jsantell
Copy link
Owner

jsantell commented Jun 7, 2012

Play local files with drag & drop interface on demo

@billwoo
Copy link

billwoo commented Jun 28, 2012

To evaluate the usefulness of this interesting tool, I need a way to specify a local music to play. thanks, Bill

@jsantell
Copy link
Owner Author

Gotcha -- will take a look at incorporating FileReader into interface

@comster
Copy link

comster commented Jul 24, 2012

any progress on this? I'm looking to use dancer with an existing audio source.

@jsantell
Copy link
Owner Author

Same deal with #13 -- once external audio sources can be leveraged, can use FileReader to pass data to that audio source as dancer leverages -- will update with progress :)

@jsantell
Copy link
Owner Author

jsantell commented Aug 9, 2012

@billwoo, @comster: audio elements may now be used as the source for dancer's audio and may be controlled with an audio element as well. With this, you can use a file reader to load audio into an audio element. Check out the ./examples/audio_element/ demo for an example. Thanks!

@jsantell jsantell closed this as completed Aug 9, 2012
@comster
Copy link

comster commented Aug 9, 2012

I saw your first commit to the audio_element branch :) and hacked it to
work with aurora. The audio api is slightly different than the audio
element I think. I'll pull the latest and try to put together an example
and maybe submit a patch if it makes sense.

Great work, Thanks!

On Thu, Aug 9, 2012 at 2:36 PM, Jordan Santell notifications@github.comwrote:

@billwoo https://github.com/billwoo, @comsterhttps://github.com/comster:
audio elements may now be used as the source for dancer's audio and may be
controlled with an audio element as well. With this, you can use a file
reader to load audio into an audio element. Check out the
./examples/audio_element/ demo for an example. Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-7627772.

@jsantell
Copy link
Owner Author

jsantell commented Aug 9, 2012

The mozilla implementation looks doable, as it just sits on top of an audio element, but Aurora's webkit implementation is all within the Audio Context (Dancer was like that previously, just pushing a buffer, rather than using an audio element), if you get something working, would love to use it!

@comster
Copy link

comster commented Aug 9, 2012

My hack worked in Chrome at least, although dirty. I'm think I'm just
passing through the existing buffer to connect listeners to. I'll try to
clean it up for posting.

On Thu, Aug 9, 2012 at 2:48 PM, Jordan Santell notifications@github.comwrote:

The mozilla implementation looks doable, as it just sits on top of an
audio element, but Aurora's webkit implementation is all within the Audio
Context (Dancer was like that previously, just pushing a buffer, rather
than using an audio element), if you get something working, would love to
use it!


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-7628061.

@comster
Copy link

comster commented Aug 25, 2012

Hey, I pulled the latest and tried to work in my changes.

I've got a branch for it here: https://github.com/comster/dancer.js/tree/audioapi

I need to add the moz adapter still, but it seems to work in Chrome. I've made an example folder to test using local files and aurora, but unfortunately it doesn't work when running the html via file:// and needs to be run from http://

@jsantell
Copy link
Owner Author

Excellent, I think I see what's going on here -- this is for getting it working with Aurora? Is it also for using local files (which may not be the responsibility of Dancer, since ultimately it just goes in an audio element)

@comster
Copy link

comster commented Aug 25, 2012

Ya. Aurora has both loadFile and loadURL. Unfortunately I wasn't able to get either working when running the example via file:// but it's a neat library supporting many codecs.

You can see the example here: https://github.com/comster/dancer.js/tree/audioapi/examples/aurora

I'll try setting it up as a gh-page later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants