Changeset 148140 in webkit


Ignore:
Timestamp:
Apr 10, 2013 2:53:28 PM (11 years ago)
Author:
eric.carlson@apple.com
Message:

[Mac] in-band tracks sometimes not recognized
https://bugs.webkit.org/show_bug.cgi?id=114380

Reviewed by Jer Noble.

No new tests, covered by existing in-band tests.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Don't call selectMediaOption,

availableMediaCharacteristicsWithMediaSelectionOptions is unlikely to be loaded at this time.

(WebCore::MediaPlayerPrivateAVFoundationObjC::processTextTracks): Disable automatic text track

selection.

(WebCore::assetMetadataKeyNames): Watch for the status of availableMediaCharacteristicsWithMediaSelectionOptions

to change.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148139 r148140  
     12013-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
    1182013-04-10  Hans Muller  <hmuller@adobe.com>
    219
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r148064 r148140  
    465465    [m_legibleOutput.get() setSuppressesPlayerRendering:YES];
    466466
    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 
    471467    [m_legibleOutput.get() setDelegate:m_objcObserver.get() queue:dispatch_get_main_queue()];
    472468    [m_legibleOutput.get() setAdvanceIntervalForDelegateInvocation:legibleOutputAdvanceInterval];
     
    13151311        return;
    13161312    }
    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
    13181319    Vector<RefPtr<InbandTextTrackPrivateAVF> > removedTextTracks = m_textTracks;
    13191320    NSArray *legibleOptions = [AVMediaSelectionGroup playableMediaSelectionOptionsFromArray:[legibleGroup options]];
     
    14401441                    @"playable",
    14411442                    @"tracks",
     1443                    @"availableMediaCharacteristicsWithMediaSelectionOptions",
    14421444                   nil];
    14431445    }
Note: See TracChangeset for help on using the changeset viewer.