[Webkit-unassigned] [Bug 163433] New: playbackRate update while playing creates a small pause in the playback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 14 01:21:57 PDT 2016


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

            Bug ID: 163433
           Summary: playbackRate update while playing creates a small
                    pause in the playback
    Classification: Unclassified
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: njaal.borch at gmail.com

Created attachment 291592
  --> https://bugs.webkit.org/attachment.cgi?id=291592&action=review
Test page to demonstrate bug with a few measurements

Scenario: play() audio or video, adjust playbackRate property, observe a small hickup (approx. 90ms) both in audio and video playback.

We have a use case where we need to do minor adjustments to the playback rate of audio and video elements. Other browsers can update the playbackRate property at any time without any audio/visual artifacts. Safari produces a significant pause in both audio and video playback.

I've created a small test page to demonstrate, even thought it can easily be reproduced and noticed by hand by something like element.play();setTimeout(function() {element.playbackRate = 1.2;}, 1000);

The attached test will first play 5s at speed 1.0, then 5s at speed 1.1 and finally 5s at speed 1.2.  The expected playback time is 16.5s of content. The printout shows measured speed (should be close to 1.0, 1.1 and 1.2), and the next line shows the difference in actual content played back compared to what was expected. The first is expected to be a bit off as it typically includes the media element to actually start playing, the next two should be close to 0 and fairly consistent.

Quick test results, Safari 10 on iOS: the last two diffs are about 80ms off. Safari 9.1 on osX: about 300ms off, same laptop with Chrome: about 10ms (no audio/visual effects).

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


More information about the webkit-unassigned mailing list