[Webkit-unassigned] [Bug 170993] m3u8 still download and play when page switch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 7 22:15:26 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=170993

--- Comment #3 from johann <toxic.johann at qq.com> ---
i temporarily fix this by using pagehide event

function stopVideo (evt) {
    if (evt.persisted) {
        $('video').each(function () {
            this.src = '';
        });
    }
}

window.addEventListener("pagehide", stopVideo, false);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170508/353becb5/attachment.html>


More information about the webkit-unassigned mailing list