Changeset 176734 in webkit
- Timestamp:
- Dec 3, 2014, 12:03:06 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/ios/WebVideoFullscreenInterfaceAVKit.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r176731 r176734 1 2014-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 1 12 2014-12-03 Joanmarie Diggs <jdiggs@igalia.com> 2 13 -
trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm
r176206 r176734 386 386 - (BOOL)hasAudioMediaSelectionOptions 387 387 { 388 return [[self audioMediaSelectionOptions] count] > 0;388 return [[self audioMediaSelectionOptions] count] > 1; 389 389 } 390 390 … … 396 396 - (BOOL)hasLegibleMediaSelectionOptions 397 397 { 398 return [[self legibleMediaSelectionOptions] count] > 0; 398 const NSUInteger numDefaultLegibleOptions = 2; 399 return [[self legibleMediaSelectionOptions] count] > numDefaultLegibleOptions; 399 400 } 400 401
Note:
See TracChangeset
for help on using the changeset viewer.