Closed Bug 568402 Opened 14 years ago Closed 6 years ago

Sometimes canplaythrough doesn't fire

Categories

(Core :: Audio/Video: Playback, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: cpearce, Unassigned)

References

Details

Attachments

(1 file)

The attached patch makes test_bug493187 backend independent. However the backend-indepent version sometimes times out because sometimes wav files aren't sending canplaythrough events after a seek. This is an intermittent failure.
In bug 564720 I will just disable test_bug493187 for audio. When this bug is fixed, please re-enable test_bug493187 for audio.
I think this is not restricted to wav only. I've observed this also occurring in test_preload_actions.html (which will land in bug 548523), and that's testing loading of an ogg video. It makes sense that this isn't restricted to wav, we do the calculation to send canplaythrough in nsHTMLMediaElement.

Maybe this is what is causing the random orange in bug 569163.
Summary: Audio sometimes doesn't fire canplaythrough after seeking → Sometimes canplaythrough doesn't fire
This may be fixed, in part or whole, by bug 755533.
Depends on: 755533
I am actually seeing a more serious issue, but seemingly building on this issue, where none of the loading events fire for a video that takes imperceptible time to load (whether it's cached, or it's too small, I'm not sure).

I have a video tag, with three fallback source tags: mp4, then webm, then ogv. The symptom I'm seeing is that firefox fires off a warning that the mp4 can't be loaded (understandably), but it never fires a loadstarted event, or a canplay, or a canplaythrough. It does fire off a volumechanged event, which is triggered before the load starts, in other browsers. And it does load the video, and can be played - firing off all of the appropriate events.
FYI, I do have video.js built on top of the video tag... but we have no flash fallback, and it's planned to be removed.
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.