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

Cannot play audio when passing an object as src #296

Open
tehmaestro opened this issue Mar 30, 2018 · 1 comment
Open

Cannot play audio when passing an object as src #296

tehmaestro opened this issue Mar 30, 2018 · 1 comment
Assignees
Labels

Comments

@tehmaestro
Copy link

Not working: Version 1.0 (tried NEXT too)
Working: 0.6.2

When registering a sound like this: window.createjs.Sound.registerSound({mp3: src}, id, data); , I cannot play the the instance. No errors, no audio.

I think that the sound is being registered with src as a string, but when calling play, src is sent as an object. So, I think that in beginPlaying , when calling SoundChannel.add , var channel = SoundChannel.get(instance.src); returns null, as instance.src is an Object.

@lannymcnie
Copy link
Member

Interesting. 1.0 isn't technically much different than 0.6.2. We can check it out.

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

No branches or pull requests

3 participants