Changeset 179905 in webkit
- Timestamp:
- Feb 10, 2015, 5:06:01 PM (12 years ago)
- Location:
- branches/safari-600.1.4.15-branch/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h (modified) (1 diff)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog
r179894 r179905 1 2015-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 1 26 2015-02-10 Babak Shafiei <bshafiei@apple.com> 2 27 -
branches/safari-600.1.4.15-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h
r179077 r179905 165 165 virtual bool supportsAcceleratedRendering() const { return true; } 166 166 virtual float mediaTimeForTimeValue(float) const; 167 virtual double maximumDurationToCacheMediaTime() const { return 5; }167 virtual double maximumDurationToCacheMediaTime() const; 168 168 169 169 virtual void createAVPlayer(); -
branches/safari-600.1.4.15-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r179078 r179905 1600 1600 } 1601 1601 1602 double 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 1602 1611 void MediaPlayerPrivateAVFoundationObjC::updateVideoLayerGravity() 1603 1612 {
Note:
See TracChangeset
for help on using the changeset viewer.