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

sono.create with mediaElements doesn't work? #58

Open
ogomez92 opened this issue Aug 21, 2019 · 0 comments
Open

sono.create with mediaElements doesn't work? #58

ogomez92 opened this issue Aug 21, 2019 · 0 comments

Comments

@ogomez92
Copy link

Hello,
I'm getting the following error when using this code: Cannot detect data type object

let sound = new Audio();
sound.src="test.mp3";
sound.addEventListener("loadeddata",()=> {
var ctx=new AudioContext();
var source=ctx.createMediaElementSource(sound);
this.sound = sono.create({
src: sound,
onComplete:() => { this.doneLoading(); } });

I use the event so that I can check that the media has loaded.
I also tried using sound as the src: parameter but it didn't work, with the same error.

Any hints or is this a bug?

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

1 participant