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:
@@ -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_);
|
||||
|
Reference in New Issue
Block a user