[Webkit-unassigned] [Bug 187445] Video hides when on last frame and changing page visibility

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 19 16:07:15 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=187445

Peng Liu <peng.liu6 at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |peng.liu6 at apple.com
         Resolution|---                         |CONFIGURATION CHANGED

--- Comment #2 from Peng Liu <peng.liu6 at apple.com> ---
On Safari Technology Preview release 89, this bug is not reproducible. The last video frame will always be there when we switch tab or application window back and forth.

About the inconsistent behavior of skipping to the last frame, I can only reproduce the inconsistency with some long video files, e.g., the big Bucky bunny video whose duration is almost 10 minutes. For short videos (~10s), the skipping to the last frame is always showing the last frame.

I would suggest implementing the skipping to the last frame by setting the currentTime attribute of the video element to a value which is little smaller than the duration.
Example code is below:
==================================================================
// This line will only work consistently when the video file is very short (~10 seconds)
skip.addEventListener('click', () => video.currentTime = video.duration)

// Below line will always skip to the last frame
skip.addEventListener('click', () => video.currentTime = video.duration - 0.01)
==================================================================

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190819/87419925/attachment-0001.html>


More information about the webkit-unassigned mailing list