Open Bug 795686 Opened 12 years ago Updated 2 years ago

Lecture video player won't work in Firefox, does in Chrome

Categories

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

defect

Tracking

()

People

(Reporter: inform, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 Iceweasel/17.0a2
Build ID: 20120928042009

Steps to reproduce:

I wrote a somewhat complex HTML5 video app that plays two video streams side-by-side (in this case, a screencast and a lecture video):

http://www.cims.nyu.edu/~kloeckner/hpc12-video/upload/html/player.html?descriptor=metadata/2012-09-05.json


Actual results:

The page works perfectly in Chrome, but dies in Firefox by not noticing that videos have finished seeking (i.e. not firing the corresponding events, as is evident from the debug log on the page). It does work fine in Firefox when run off a local webserver on my hard drive. Poking around with Firebug shows that Firefox does wonky things on the network--trying to download the entire video, for instance.


Expected results:

The page should have worked as well as it does in Chrome.
Status: UNCONFIRMED → NEW
Component: Untriaged → Video/Audio
Ever confirmed: true
Product: Firefox → Core
Does it work normally in previous versions like FF14 or 15?
Based on a quick test, FF15 seems to behave no better than FF17.
FF23.0.1 is still unhappy.
Is it possible to attach a reduced testcase showing the issue?
Flags: needinfo?(inform)
Attaching won't work because of large media files. Also, there seems to be a timing component to this, since everything works fine if I serve the content from my local machine.

For what it's worth, I've made a reduced version of the player that shows the same issue:
http://tiker.net/inteq13/html/player-simple.html
Flags: needinfo?(inform)
(In reply to Andreas Kloeckner from comment #5)
> For what it's worth, I've made a reduced version of the player that shows
> the same issue:
> http://tiker.net/inteq13/html/player-simple.html

This example seems to work for me on a nightly build on Linux. What should I be seeing in failure?
In the debug window that pops up, you should at some point see "new state: paused", as you do in Chrome. Firefox never gets to this state for me. On FF23, I see a hang on "Stream {left,right}-audio loading media...".
(In reply to Andreas Kloeckner from comment #7)
> In the debug window that pops up, you should at some point see "new state:
> paused", as you do in Chrome. Firefox never gets to this state for me. On
> FF23, I see a hang on "Stream {left,right}-audio loading media...".

I see it show "new state: paused" and then the debug window disappears. Is this what is supposed to happen?
Yes, that's the desired behavior--it means the streams have finished buffering.
Just tried a nightly (26.0a2). The hang persists for me. Note that this appears to have something to do with connection speed--see my comment above on how things work well for me when using a local HTTP server. I'm on a 3Mbps cable line.
The testcase works erratically on my FF23, I need to reload the page 4 or 5 times.
I've observed that hitting the "seek to start" button in the full-scale player will usually fix things in FF23.
Andreas: can you still reproduce these video problems? I tested in Firefox 27, Aurora 29, and Nightly 30. The video seems to load (and then I can click play) in Nightly 30. In Firefox 27 and Aurora 29 the video looks like it is stuck in the loading state, but if I click ahead in the video timeline, then the video seems to load as expected.

Maybe this is race condition related to order in which video events are delivered to the content? Unfortunately, the http://www.cims.nyu.edu/ server itself kept crashing ("Service unavailable!") when I was testing these videos.
OS: Linux → All
Hardware: x86_64 → All
Version: 17 Branch → Trunk
Still an issue for me with Firefox 27--stuck on loading. Haven't tried the nightly.
Nightly almost works for me.

If I load the video directly from http://www.cims.nyu.edu/~kloeckner/hpc12-video/upload/video/2012-09-05-room.webm it works fine, so the server seems to have enough bandwidth. But in Nightly on Windows the page loads up to the seeking state, but playback the video playback never starts when I load the page itself.

If I load right click and opt to show controls I can start playback using the in built controls. The page must be expecting us to fire an event...

Andreas: You know your own code much better than we do, it would be great if you could track down the behaviour difference between Chrome and Firefox that's causing your video player to not start playback. Maybe start by looking at what event your player is waiting on to start playback?
Flags: needinfo?(inform)
The code waits for a can_play event, then executes a seek and waits for a seek_complete. The seek_complete usually doesn't arrive.
Flags: needinfo?(inform)
Component: Audio/Video → Audio/Video: Playback
WFM on Mac OSX. Is this still reproducible?
Flags: needinfo?(inform)
Still broken on Firefox 43 in Linux.
Flags: needinfo?(inform)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.