Closed Bug 1028672 Opened 11 years ago Closed 10 years ago

HTML5 video not firing playing event first time

Categories

(Core :: Audio/Video, defect)

30 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sergeyd63, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 Steps to reproduce: Create HTML5 video tag with on playing event handling. When you navigating to the page for the first time (or by clearing cache and closing the browser) the playing event not fired. When you refreshing the page the event is fired. It happens only if you do the both steps (clearing cache and exiting the browser or for the first time). After that the event fires every time. Actual results: No "playing" event fired Expected results: Should fire "playing" event
p.s.: Forgot to mention - This is happens when you have an autoplay attribute in the video elment
A testcase may be useful.
QA Whiteboard: [bugday-20140630]
Component: Untriaged → Video/Audio
Product: Firefox → Core
http://jsfiddle.net/sergeyd63/UYKMy/1/ You should navigate "clean" Clear cache, go to empty tab or any other tab Reopen the browser Open console Navigate to above link You should see all the events but playing Added another screen shot from jsFiddle
Attached image ffVideoEventLog.JPG
Same with direct link to video source http://jsfiddle.net/sergeyd63/UYKMy/4/
If I 1. Start Nightly 2014-06-28-03-02-01-mozilla-central-firefox-33.0a1.ru.linux-x86_64 with a temporary profile (using https://ftp.mozilla.org/pub/mozilla.org/utilities/profilemanager/). 2. Open Web Console. 3. Load http://jsfiddle.net/UYKMy/5/ (same as above, but with a WeM file). I see a playing event mentioned: " ===== Event canplay ::::: target [object HTMLVideoElement]" show:29 " ===== Event play ::::: target [object HTMLVideoElement]" show:29 " ===== Event playing ::::: target [object HTMLVideoElement]" show:29 " ===== Event canplaythrough ::::: target [object HTMLVideoElement]" show:29 " ===== Event timeupdate ::::: target [object HTMLVideoElement]" show:29 " ===== Event progress ::::: target [object HTMLVideoElement]" show:29 " ===== Event suspend ::::: target [object HTMLVideoElement]" show:29 … I don't see a playing event with firefox-30.0.en-US.linux64. I pressed Esc when the first tab was loading, so if there was a video, it probably didn't start loading at all.
-g 2014-02-28-03-02-06-mozilla-central-firefox-30.0a1.en-US.linux-x86_64 -b 2014-03-08-03-02-03-mozilla-central-firefox-30.0a1.ru.linux-x86_64 -b 2014-03-16-03-02-02-mozilla-central-firefox-30.0a1.en-US.linux-x86_64 -b 2014-03-21-03-02-03-mozilla-central-firefox-31.0a1.en-US.linux-x86_64 c148f0b0c8b4 (fix) -g 2014-03-22-03-02-04-mozilla-central-firefox-31.0a1.en-US.linux-x86_64 72c2f9ebf4bc -g 2014-03-24-03-02-03-mozilla-central-firefox-31.0a1.en-US.linux-x86_64 -g 2014-04-02-03-02-01-mozilla-central-firefox-31.0a1.en-US.linux-x86_64
Following the same steps as comment 6 I also see a 'playing' event. Looks to be fixed as per comment 8. Please reopen if you can still reproduce.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: