Skip to content

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

@ogomez92

Description

@ogomez92

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions