Changeset 193959 in webkit
- Timestamp:
- Dec 11, 2015 9:45:16 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r193957 r193959 1 2015-12-11 Per Arne Vollan <peavo@outlook.com> 2 3 [WinCairo][MediaFoundation] Setting playback rate does not work. 4 https://bugs.webkit.org/show_bug.cgi?id=152172 5 6 Reviewed by Brent Fulgham. 7 8 Implement method to set playback rate. 9 10 * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp: 11 (WebCore::MediaPlayerPrivateMediaFoundation::seekDouble): 12 (WebCore::MediaPlayerPrivateMediaFoundation::setRateDouble): 13 (WebCore::MediaPlayerPrivateMediaFoundation::durationDouble): 14 * platform/graphics/win/MediaPlayerPrivateMediaFoundation.h: 15 1 16 2015-12-11 Darin Adler <darin@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
r193761 r193959 217 217 } 218 218 219 void MediaPlayerPrivateMediaFoundation::setRateDouble(double rate) 220 { 221 COMPtr<IMFRateControl> rateControl; 222 223 HRESULT hr = MFGetServicePtr()(m_mediaSession.get(), MF_RATE_CONTROL_SERVICE, IID_IMFRateControl, (void**)&rateControl); 224 225 if (!SUCCEEDED(hr)) 226 return; 227 228 BOOL reduceSamplesInStream = rate > 2.0; 229 230 rateControl->SetRate(reduceSamplesInStream, rate); 231 } 232 219 233 double MediaPlayerPrivateMediaFoundation::durationDouble() const 220 234 { -
trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.h
r193353 r193959 73 73 virtual bool seeking() const; 74 74 virtual void seekDouble(double) override; 75 76 virtual void setRateDouble(double) override; 77 75 78 virtual double durationDouble() const override; 76 79
Note: See TracChangeset
for help on using the changeset viewer.