Skip to content

the audio context was not allowed to start #14

Description

@yannik131

On several browsers I received the above error because the anonymous function in xaudio.js at line 598 which is called after its definition creates an audio handle. This is not allowed unless the user has previously interacted with the browser in some instances (occurred only on my mac). I put the function and the anonymous function in ws-audio-api.js in named functions initStuff or something and called them just before initializing the streamer and player variables (which is triggered by the user clicking on a button, thereby interacting with the site). This solved the issue. I suppose putting those functions in something you can call would be sensible. Or if you know of any loopholes to avoid this problem, I'd be glad to hear them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions