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

no support for iOS? #23

Closed
Takazudo opened this issue Nov 30, 2012 · 11 comments
Closed

no support for iOS? #23

Takazudo opened this issue Nov 30, 2012 · 11 comments

Comments

@Takazudo
Copy link

Hi, how about supporting iOS?
I read the code and found SoundJS doesn't support iOS by browser detection.
But, I found another library that supports iOS.
http://www.schillmania.com/projects/soundmanager2/

SoundJS + PreloadJS is awesome. But it's better if it supports iOS, I think.

@lannymcnie
Copy link
Member

The latest NEXT version of SoundJS has a WebAudio plugin that can be used for iOS. We are working on full support, and hope to have something released soon.

@Takazudo
Copy link
Author

wow cool!
Thanks for replying!

@onedrop
Copy link

onedrop commented Dec 6, 2012

Using the NEXT version of SoundJS and the WebAudioPlugin in the extras folder, I could not get sound to play on iOS 6. After registering the plugin, checkPlugin() returns false. Is there any trick to getting it to work??

createjs.SoundJS.registerPlugins([WebAudioPlugin, createjs.HTMLAudioPlugin]);
console.log(createjs.SoundJS.checkPlugin(true)) // false :(

@TimJaramillo
Copy link

I second onedrop's comment. I'm not able to get this working on iOS using SoundJS NEXT and the WebAudioPlugin.

Lanny- would it be possible for you guys to post a zip, or even an online example of this, working on iOS?

thanks!

@OJayRobinson
Copy link
Contributor

Hi guys, thanks for letting us know about the troubles you ran into. It turns out that iOS changed how it defined webkitAudioContext and audio on window recently, so the checks for if (typeof webkitAudioContext == "function") were failing which left context undefined. We altered the checks so this now works. In the repo, check out examples/SoundGrid_WebAudio.html for a working example.

One note for working with Web Audio on iOS, you need to start your sounds inside of a user initiated event (typically a button press). Read this if you'd like to know more. Note this also suggests only your first sound needs to be inside of a user initiated event.

@TimJaramillo
Copy link

Cool, the new WebAudioPlugin.js is working for me in iOS6 now. Thanks for the quick fix!

@Rufu5
Copy link

Rufu5 commented Jan 8, 2013

I confess my noobness with createJS, but I have got some animated navigation happening, that can be seen here: http://zenzenzo.moodra.com
I have been using timeline audio events in flash cs6 exporting via toolkit for createJS. They work fine in Chrome, but the whole point was to get it running on iOS. Can someone please explain to me how to make use of WebAudioPlugin.js? where do I put the call?

@OJayRobinson
Copy link
Contributor

Full SoundJS support for iOS 6 is now available in the NEXT version available on github. Read this discussion for details.

@Rufu5
Copy link

Rufu5 commented Jan 21, 2013

Hi Ojay,
thanks for the update.
I just tried it on a project I am working on create with Toolkit for
createJS.
When I swap 0.3.0 for NEXT and test it in chrome, the animation becomes
glitchy and sound stops working.

Here is the navigation with soundjs-NEXT.min.js (running glitchy with no
sound for me on chrome)
http://zenzenzo.moodra.com/nav-with-NEXT.html

Here is the navigation with soundjs-0.3.0.min.js (running fine, sounds good
at least on chrome for me)
http://zenzenzo.moodra.com/nav.html

I had this problem with the version you posted last week too. Perhaps the
sound code calls generated by toolkit are mismatched with the syntax for
your NEXT version?
My sounds are very small mp3 files.

On 21 January 2013 12:27, OJay notifications@github.com wrote:

Full SoundJS support for iOS 6 is now available in the NEXT version
available on github https://github.com/CreateJS/SoundJS/. Read this
discussionhttp://community.createjs.com/discussions/soundjs/85-ios-6-full-support-available-in-soundjsnextfor details.


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

Regards,
Rufus Lane,
www.moodra.com
Phone: +61 7 5406 1311
Mobile: +61 4 1784 4739

@Rufu5
Copy link

Rufu5 commented Jan 21, 2013

Studing my animation, I see that all objects disappear on the exact frame
that a sound should be triggered, resulting in a kind of blinking effect on
each such frame.

On 21 January 2013 12:27, OJay notifications@github.com wrote:

Full SoundJS support for iOS 6 is now available in the NEXT version
available on github https://github.com/CreateJS/SoundJS/. Read this
discussionhttp://community.createjs.com/discussions/soundjs/85-ios-6-full-support-available-in-soundjsnextfor details.


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

Regards,
Rufus Lane,
www.moodra.com
Phone: +61 7 5406 1311
Mobile: +61 4 1784 4739

@OJayRobinson
Copy link
Contributor

Hi Rufus, no need to post your question in more than one place on the SoundJS forums, I see them all.=) I've answered your question in the other thread.

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

No branches or pull requests

6 participants