I have Video Player. But when I change the quality its giving this error
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
JavaScript
e(".ad-quality-option").on("click", function() {
w.pause()
var t = e(this).html();
e(".ad-quality-dropdown").fadeOut(fade),
e(".ad-quality-menu").html(t);
var a = e(this).attr("data-quality");
w.src = a,
w.addEventListener("canplay", function() {
w.currentTime=e(".ad-video").attr("data-current"),w.play() });
})