Skip to content

The soundjs will not work when the source url is a RESTFUL api. #284

Open
@Moxmi

Description

@Moxmi

as the follow:

      var src = 'http://dict.youdao.com/dictvoice?audio=testword';
     
      createjs.Sound.alternateExtensions = ["mp3"];	// add other extensions to try loading if the src file extension is not supported
      //createjs.Sound.onLoadComplete = playSound;  // add a callback for when load is completed
      createjs.Sound.addEventListener("fileload", function() {createjs.Sound.play('demo')}); // add an event listener for when load is completed
      createjs.Sound.registerSound(src, 'demo');  // register sound, which preloads by default```

This will raise the error that 'Type not recognized'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions