Skip to content

Player.destroy() throws exception when Audio is disabled. #179

@shbatm

Description

@shbatm

When calling Player.destroy() on a player with the audio: false setting an exception is thrown:

Uncaught TypeError: Cannot read property 'destroy' of undefined
    at Player.destroy (jsmpeg.min.js:formatted:264)

It appears that because audio: false is used, this.audioOut is undefined and therefore this.audioOut.destroy() fails when called in Player.prototype.destroy().

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