Video without audio ended too early before it really reaches to the end
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
People
(Reporter: Dolske, Assigned: alwu)
References
Details
Attachments
(1 file)
|
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
Not sure if this is actually a video issue or a site compat issue, but starting here...
https://twitter.com/elakdawalla/status/1129141958306197504
In Nightly, the "GIF" (really a <video>) in this tweet is a 2-frame (presumably) before/after animation. In Nightly I get the "After" showing for ~1 second, and then a very very brief (milliseconds) flash of the "Before" image, and then it loops.
In Chrome I see the Before and After frames alternating at ~1Hz, which is what I'd expect.
(In the blog post linked from the tweet, the actual GIF plays correctly in both Firefox and Chrome.)
Comment 1•7 years ago
|
||
Alastor, this might be looping related, if you want to have a look?
| Assignee | ||
Comment 2•7 years ago
•
|
||
I found that there are two different issues here. Both of them are not related with looping, you can reproduce the issue via visiting video url [1] directly.
On OSX, the problem is that we ended the video promise too early, so that we couldn't show the last frame with enough duration. The issue reported in this bug is this one.
On Linux, we got another issue, which is the video playback can't start properly. The playback would stop immediately after we start the video. The reason is that the video frames decoder returned have incorrect duration 0.
| Assignee | ||
Comment 3•7 years ago
|
||
We should resolve video playing promise until we finish playing a last frame. Otherwise, it would cause playback to be ended earlier than its orignal duration.
Updated•7 years ago
|
| Assignee | ||
Comment 4•7 years ago
|
||
Add NI as a reminder to uplift the change to 68.
Comment 6•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 7•7 years ago
•
|
||
Comment on attachment 9066527 [details]
Bug 1552354 - resolve video promise when we finish playing the last frame.
Beta/Release Uplift Approval Request
- User impact if declined: Video would end up too early before it really reaches to the end
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce:
- goto https://video.twimg.com/tweet_video/D6uEne2VsAAXGpp.mp4
- to see whether video is playing exact 2 seconds (1 second per frame)
Note. This video can't playback well on Linux, that is another issue. (Bug 1553899)
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch doesn't change playback pipeline behaviors, it delays to end video only when we pop out last video frame from our video queue and video hasn't really reach to the end. And the delay time is really tiny, which is usually below 1s.
- String changes made/needed: None
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 8•7 years ago
|
||
Hi, I reproduced this issue in older versions of Firefox but This issue no longer occurs in 69.0a1 (2019-05-24). I will mark this issue accordingly.
Comment 9•7 years ago
|
||
Comment on attachment 9066527 [details]
Bug 1552354 - resolve video promise when we finish playing the last frame.
approved for 68.0b5
Comment 10•7 years ago
|
||
| bugherder uplift | ||
Comment 12•7 years ago
|
||
This issue is verified as Fixed in Beta 69.0b3, on Mac and Windows, I will mark it accordingly.
Description
•