Changeset 148140 in webkit
- Timestamp:
- Apr 10, 2013 2:53:28 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r148139 r148140 1 2013-04-10 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] in-band tracks sometimes not recognized 4 https://bugs.webkit.org/show_bug.cgi?id=114380 5 6 Reviewed by Jer Noble. 7 8 No new tests, covered by existing in-band tests. 9 10 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 11 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Don't call selectMediaOption, 12 availableMediaCharacteristicsWithMediaSelectionOptions is unlikely to be loaded at this time. 13 (WebCore::MediaPlayerPrivateAVFoundationObjC::processTextTracks): Disable automatic text track 14 selection. 15 (WebCore::assetMetadataKeyNames): Watch for the status of availableMediaCharacteristicsWithMediaSelectionOptions 16 to change. 17 1 18 2013-04-10 Hans Muller <hmuller@adobe.com> 2 19 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r148064 r148140 465 465 [m_legibleOutput.get() setSuppressesPlayerRendering:YES]; 466 466 467 // We enabled automatic media selection because we want alternate audio tracks to be enabled/disabled automatically,468 // but set the selected legible track to nil so text tracks will not be automatically configured.469 [m_avPlayerItem.get() selectMediaOption:nil inMediaSelectionGroup:safeMediaSelectionGroupForLegibleMedia()];470 471 467 [m_legibleOutput.get() setDelegate:m_objcObserver.get() queue:dispatch_get_main_queue()]; 472 468 [m_legibleOutput.get() setAdvanceIntervalForDelegateInvocation:legibleOutputAdvanceInterval]; … … 1315 1311 return; 1316 1312 } 1317 1313 1314 // We enabled automatic media selection because we want alternate audio tracks to be enabled/disabled automatically, 1315 // but set the selected legible track to nil so text tracks will not be automatically configured. 1316 if (!m_textTracks.size()) 1317 [m_avPlayerItem.get() selectMediaOption:nil inMediaSelectionGroup:safeMediaSelectionGroupForLegibleMedia()]; 1318 1318 1319 Vector<RefPtr<InbandTextTrackPrivateAVF> > removedTextTracks = m_textTracks; 1319 1320 NSArray *legibleOptions = [AVMediaSelectionGroup playableMediaSelectionOptionsFromArray:[legibleGroup options]]; … … 1440 1441 @"playable", 1441 1442 @"tracks", 1443 @"availableMediaCharacteristicsWithMediaSelectionOptions", 1442 1444 nil]; 1443 1445 }
Note: See TracChangeset
for help on using the changeset viewer.