Skip to content

Fix for uncaught error of destroy method#181

Open
AttilaSATAN wants to merge 1 commit into
phoboslab:masterfrom
AttilaSATAN:patch-1
Open

Fix for uncaught error of destroy method#181
AttilaSATAN wants to merge 1 commit into
phoboslab:masterfrom
AttilaSATAN:patch-1

Conversation

@AttilaSATAN

Copy link
Copy Markdown

patch for #174
In the presence of options video: false or audio: false, destroy() method of player instance throws an error as

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

patch for phoboslab#174
In the presence of options `video: false` or `audio: false`, `destroy()` method of player instance throws an error as

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

```
@grajagandev

Copy link
Copy Markdown

Would you be interested in software that automatically finds TypeErrors caused by corner cases like these options? I am building Fuzz Stati0n to do that (free for OSS) - please take a look and consider signing up for our newsletter to keep in touch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants