Firefox doesn't stop buffering destroyed video elements

UNCONFIRMED
Unassigned

Status

()

P3
normal
UNCONFIRMED
3 years ago
2 years ago

People

(Reporter: stephen.r.burrows, Unassigned)

Tracking

42 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36

Steps to reproduce:

I followed the instructions in MDN on how to stop video playback: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video#Stopping_the_download_of_media

Specifically, my code to remove and stop buffering the video reads as follows:

        videoEl.pause(0);
        videoEl.src = '';
        videoEl.removeAttribute('src');
        videoEl.remove();


Actual results:

The video keeps buffering until the entire thing is loaded.


Expected results:

The buffer should've stopped immediately, as described in the MDN docs.
(Reporter)

Comment 1

3 years ago
In case it's relevant, the video element in question has autoplay and preload="auto"

Comment 2

3 years ago
is there any specific webpage/url/testcase so that we can have a look ?
What happens with other browsers?
what happens if you remove autoplay and preload="auto" ??

Updated

3 years ago
Component: Untriaged → Audio/Video
Product: Firefox → Core
Component: Audio/Video → Audio/Video: Playback
This is sounds like the lifetime issues we've been working on.
Priority: -- → P2
Mass change P2 -> P3
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.