1
0
mirror of https://github.com/videojs/video.js.git synced 2025-09-16 09:26:56 +02:00

fix: check for el before resetSourceSet (#5176)

This commit is contained in:
Brandon Casey
2018-05-16 11:19:45 -04:00
committed by GitHub
parent 09ddb98dfb
commit 59c6261cb5

View File

@@ -118,7 +118,7 @@ class Html5 extends Tech {
* Dispose of `HTML5` media element and remove all tracks.
*/
dispose() {
if (this.el_.resetSourceset_) {
if (this.el_ && this.el_.resetSourceset_) {
this.el_.resetSourceset_();
}
Html5.disposeMediaElement(this.el_);