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

Changeset 179905 in webkit


Ignore:
Timestamp:
Feb 10, 2015, 5:06:01 PM (12 years ago)
Author:
bshafiei@apple.com
Message:

Merged r179843. rdar://problem/19432919

Location:
branches/safari-600.1.4.15-branch/Source/WebCore
Files:
3 edited

Legend:

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

    r179894 r179905  
     12015-02-10  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r179843.
     4
     5    2015-02-09  Jer Noble  <jer.noble@apple.com>
     6
     7            [Mac] Disable the currentTime estimation code in HTMLMediaElement for Yosemite+
     8            https://bugs.webkit.org/show_bug.cgi?id=141399
     9
     10            Reviewed by Eric Carlson.
     11
     12            Apparenty -[AVPlayer rate] means different things for HLS and progressive content; for progressive,
     13            the -rate is the actual rate of playback. For HLS, the -rate is the requested rate, and will return
     14            the requested value even if time is not progressing.
     15
     16            We added the currentTime estimation engine because asking AVFoundation for its -currentTime used to
     17            be expensive, but we've been assured that in recent iOS and OS X releases, -currentTime should be
     18            very fast. That, in combination with the HLS behavior of -rate and how it breaks the currentTime
     19            estimation, means we should probably turn it off for iOS and Yosemite.
     20
     21            * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
     22            (WebCore::MediaPlayerPrivateAVFoundationObjC::maximumDurationToCacheMediaTime): Move implementation to .mm.
     23            * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     24            (WebCore::MediaPlayerPrivateAVFoundationObjC::maximumDurationToCacheMediaTime): Disable on iOS and >=10.10.
     25
    1262015-02-10  Babak Shafiei  <bshafiei@apple.com>
    227
  • branches/safari-600.1.4.15-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h

    r179077 r179905  
    165165    virtual bool supportsAcceleratedRendering() const { return true; }
    166166    virtual float mediaTimeForTimeValue(float) const;
    167     virtual double maximumDurationToCacheMediaTime() const { return 5; }
     167    virtual double maximumDurationToCacheMediaTime() const;
    168168
    169169    virtual void createAVPlayer();
  • branches/safari-600.1.4.15-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r179078 r179905  
    16001600}
    16011601
     1602double MediaPlayerPrivateAVFoundationObjC::maximumDurationToCacheMediaTime() const
     1603{
     1604#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1010
     1605    return 0;
     1606#else
     1607    return 5;
     1608#endif
     1609}
     1610
    16021611void MediaPlayerPrivateAVFoundationObjC::updateVideoLayerGravity()
    16031612{
Note: See TracChangeset for help on using the changeset viewer.