⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181666 in webkit


Ignore:
Timestamp:
Mar 17, 2015, 3:12:46 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

When tab hides, pause fullscreen and exit normally.
https://bugs.webkit.org/show_bug.cgi?id=142685

Patch by Jeremy Jones <jeremyj@apple.com> on 2015-03-17
Reviewed by Eric Carlson.

Pause fullscreen playback when switching tabs. Exit fullscreen is not necessary and even prevents
the normal flow of teardown. This allows the normal exit fullscreen call to succeed and call its callback.

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(WebVideoFullscreenInterfaceAVKit::requestHideAndExitFullscreen):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181665 r181666  
     12015-03-17  Jeremy Jones  <jeremyj@apple.com>
     2
     3        When tab hides, pause fullscreen and exit normally.
     4        https://bugs.webkit.org/show_bug.cgi?id=142685
     5
     6        Reviewed by Eric Carlson.
     7
     8        Pause fullscreen playback when switching tabs. Exit fullscreen is not necessary and even prevents
     9        the normal flow of teardown. This allows the normal exit fullscreen call to succeed and call its callback.
     10
     11        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     12        (WebVideoFullscreenInterfaceAVKit::requestHideAndExitFullscreen):
     13
    1142015-03-17  Per Arne Vollan  <peavo@outlook.com>
    215
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r181259 r181666  
    11551155    dispatch_async(dispatch_get_main_queue(), [strongThis] {
    11561156        [strongThis->m_window setHidden:YES];
    1157         [strongThis->m_playerViewController exitFullScreenAnimated:NO completionHandler:[strongThis] (BOOL, NSError*) {
    1158         }];
    1159     });
    1160 
    1161     if (m_videoFullscreenModel && !m_exitRequested)
     1157    });
     1158
     1159    if (m_videoFullscreenModel && !m_exitRequested) {
     1160        m_videoFullscreenModel->pause();
    11621161        m_videoFullscreenModel->requestExitFullscreen();
     1162    }
    11631163}
    11641164
Note: See TracChangeset for help on using the changeset viewer.