Changeset 206520 in webkit


Ignore:
Timestamp:
Sep 28, 2016, 9:26:44 AM (9 years ago)
Author:
jer.noble@apple.com
Message:

PiP shows incorrect state of play button.
https://bugs.webkit.org/show_bug.cgi?id=162652

Reviewed by Eric Carlson.

After getting a new WebPlaybackSessionModel, the first thing WebVideoFullscreenInterfaceMac
should do is query for it's playbackRate() and isPlaying() properties.

  • platform/mac/WebVideoFullscreenInterfaceMac.mm:

(WebCore::WebVideoFullscreenInterfaceMac::WebVideoFullscreenInterfaceMac):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206519 r206520  
     12016-09-28  Jer Noble  <jer.noble@apple.com>
     2
     3        PiP shows incorrect state of play button.
     4        https://bugs.webkit.org/show_bug.cgi?id=162652
     5
     6        Reviewed by Eric Carlson.
     7
     8        After getting a new WebPlaybackSessionModel, the first thing WebVideoFullscreenInterfaceMac
     9        should do is query for it's playbackRate() and isPlaying() properties.
     10
     11        * platform/mac/WebVideoFullscreenInterfaceMac.mm:
     12        (WebCore::WebVideoFullscreenInterfaceMac::WebVideoFullscreenInterfaceMac):
     13
    1142016-09-28  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/WebCore/platform/mac/WebVideoFullscreenInterfaceMac.mm

    r205365 r206520  
    353353{
    354354    ASSERT(m_playbackSessionInterface->webPlaybackSessionModel());
    355     m_playbackSessionInterface->webPlaybackSessionModel()->addClient(*this);
     355    auto model = m_playbackSessionInterface->webPlaybackSessionModel();
     356    model->addClient(*this);
     357    [videoFullscreenInterfaceObjC() updateIsPlaying:model->isPlaying() newPlaybackRate:model->playbackRate()];
    356358}
    357359
Note: See TracChangeset for help on using the changeset viewer.