Changeset 210328 in webkit


Ignore:
Timestamp:
Jan 5, 2017 7:51:39 AM (7 years ago)
Author:
Wenson Hsieh
Message:

Disable smooth playhead animation for main content media in the Touch Bar
https://bugs.webkit.org/show_bug.cgi?id=166715
<rdar://problem/29870673>

Reviewed by Eric Carlson.

Passing in a non-zero playback rate to WebPlaybackControlsManager's timing property causes unintended effects
further down the stack. Please see the Radar for more details.

  • platform/mac/WebPlaybackSessionInterfaceMac.mm:

(WebCore::WebPlaybackSessionInterfaceMac::updatePlaybackControlsManagerTiming):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r210327 r210328  
     12017-01-05  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Disable smooth playhead animation for main content media in the Touch Bar
     4        https://bugs.webkit.org/show_bug.cgi?id=166715
     5        <rdar://problem/29870673>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Passing in a non-zero playback rate to WebPlaybackControlsManager's timing property causes unintended effects
     10        further down the stack. Please see the Radar for more details.
     11
     12        * platform/mac/WebPlaybackSessionInterfaceMac.mm:
     13        (WebCore::WebPlaybackSessionInterfaceMac::updatePlaybackControlsManagerTiming):
     14
    1152017-01-05  Andreas Kling  <akling@apple.com>
    216
  • trunk/Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm

    r210105 r210328  
    221221        effectivePlaybackRate = 0;
    222222
    223     manager.timing = [getAVValueTimingClass() valueTimingWithAnchorValue:currentTime anchorTimeStamp:effectiveAnchorTime rate:effectivePlaybackRate];
     223    // FIXME: The timing value should ideally use the effective playback rate, but this causes AVKit to indefinitely fire a repeating timer.
     224    // More investigation will be required before we re-enable smooth playhead animation -- for now, we should just pretend that the playback
     225    // rate is always 0.
     226    manager.timing = [getAVValueTimingClass() valueTimingWithAnchorValue:currentTime anchorTimeStamp:effectiveAnchorTime rate:0];
    224227}
    225228
Note: See TracChangeset for help on using the changeset viewer.