Skip to content

TypeError: null is not an object (evaluating 'c.context.createBuffer') #273

Open
@praine

Description

@praine

I have started getting the above error on iOS (10.3.1) Safari when using a manifest to preload SFX as follows:


var manifest=[{id:"correct", src:"/sfx/correct.mp3"},{id:"incorrect", src:"/sfx/incorrect.mp3"},{id:"click", src:"/sfx/click.mp3"},{id:"cancel", src:"/sfx/cancel.mp3"}];
var queue = new createjs.LoadQueue(); 
createjs.Sound.alternateExtensions = ["mp3"];
queue.installPlugin(createjs.Sound);
queue.addEventListener("fileload", handleFileLoad);
queue.addEventListener("complete", handleComplete);
queue.addEventListener("progress", handleProgress);
queue.loadManifest(manifest); // Throws above error
createjs.Sound.volume=0.1;

No error is thrown on desktop browsers (Safari, Chrome, Firefox)

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