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

Changeset 187334 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 1:23:12 AM (11 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r187036. rdar://problem/21901881

Location:
branches/safari-601.1-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebCore/ChangeLog

    r187329 r187334  
     12015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r187036. rdar://problem/21901881
     4
     5    2015-07-20  Jeremy Jones  <jeremyj@apple.com>
     6
     7            Allow video to rotate when app doesnt allow rotation.
     8            https://bugs.webkit.org/show_bug.cgi?id=147121
     9
     10            Reviewed by Jer Noble.
     11
     12            Set an SPI bool on the fullscreen video root view controller to allow it to override app rotation restrictions.
     13            This allows video to be played in landscape in portrait only apps.
     14
     15            * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     16            (WebVideoFullscreenInterfaceAVKit::setupFullscreen):
     17
    1182015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
    219
  • branches/safari-601.1-branch/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r187187 r187334  
    10231023@end
    10241024
     1025@interface UIViewController ()
     1026@property (nonatomic, assign, setter=_setIgnoreAppSupportedOrientations:) BOOL _ignoreAppSupportedOrientations;
     1027@end
     1028
    10251029void WebVideoFullscreenInterfaceAVKit::setupFullscreen(UIView& videoView, const WebCore::IntRect& initialRect, UIView* parentView, HTMLMediaElementEnums::VideoFullscreenMode mode, bool allowsPictureInPicturePlayback)
    10261030{
     
    10411045        m_viewController = adoptNS([allocUIViewControllerInstance() init]);
    10421046        [[m_viewController view] setFrame:[m_window bounds]];
     1047        [m_viewController _setIgnoreAppSupportedOrientations:YES];
    10431048        [m_window setRootViewController:m_viewController.get()];
    10441049        [m_window makeKeyAndVisible];
Note: See TracChangeset for help on using the changeset viewer.