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

Changeset 176734 in webkit


Ignore:
Timestamp:
Dec 3, 2014, 12:03:06 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Subtitle menu should only appear when useful.
https://bugs.webkit.org/show_bug.cgi?id=139133

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

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(-[WebAVPlayerController hasLegibleMediaSelectionOptions]): only enable when there are non default options.
(-[WebAVPlayerController hasAudioMediaSelectionOptions]): only enable when there is more than one option.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176731 r176734  
     12014-12-03  Jeremy Jones  <jeremyj@apple.com>
     2
     3        Subtitle menu should only appear when useful.
     4        https://bugs.webkit.org/show_bug.cgi?id=139133
     5
     6        Reviewed by Eric Carlson.
     7
     8        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     9        (-[WebAVPlayerController hasLegibleMediaSelectionOptions]): only enable when there are non default options.
     10        (-[WebAVPlayerController hasAudioMediaSelectionOptions]): only enable when there is more than one option.
     11
    1122014-12-03  Joanmarie Diggs  <jdiggs@igalia.com>
    213
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r176206 r176734  
    386386- (BOOL)hasAudioMediaSelectionOptions
    387387{
    388     return [[self audioMediaSelectionOptions] count] > 0;
     388    return [[self audioMediaSelectionOptions] count] > 1;
    389389}
    390390
     
    396396- (BOOL)hasLegibleMediaSelectionOptions
    397397{
    398     return [[self legibleMediaSelectionOptions] count] > 0;
     398    const NSUInteger numDefaultLegibleOptions = 2;
     399    return [[self legibleMediaSelectionOptions] count] > numDefaultLegibleOptions;
    399400}
    400401
Note: See TracChangeset for help on using the changeset viewer.