| Index: Source/web/WebMediaPlayerClientImpl.cpp
|
| diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
|
| index d1039e7d90107520c51d8f2d9fe1df4f91213ad7..c4deb0de5fabbdad4b19449e4cea54c52bdccf4d 100644
|
| --- a/Source/web/WebMediaPlayerClientImpl.cpp
|
| +++ b/Source/web/WebMediaPlayerClientImpl.cpp
|
| @@ -196,6 +196,8 @@ void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
|
|
|
| m_webMediaPlayer->setPoster(poster);
|
|
|
| + m_webMediaPlayer->setRate(mediaElement().playbackRate());
|
| +
|
| #if OS(ANDROID)
|
| m_usePaintOnAndroid = (loadType != WebMediaPlayer::LoadTypeMediaStream);
|
| #endif
|
| @@ -205,18 +207,6 @@ void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
|
| m_webMediaPlayer->load(loadType, kurl, corsMode);
|
| }
|
|
|
| -double WebMediaPlayerClientImpl::rate() const
|
| -{
|
| - return m_rate;
|
| -}
|
| -
|
| -void WebMediaPlayerClientImpl::setRate(double rate)
|
| -{
|
| - m_rate = rate;
|
| - if (m_webMediaPlayer)
|
| - m_webMediaPlayer->setRate(rate);
|
| -}
|
| -
|
| MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const
|
| {
|
| if (m_webMediaPlayer)
|
| @@ -231,25 +221,6 @@ MediaPlayer::ReadyState WebMediaPlayerClientImpl::readyState() const
|
| return MediaPlayer::HaveNothing;
|
| }
|
|
|
| -double WebMediaPlayerClientImpl::maxTimeSeekable() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->maxTimeSeekable();
|
| - return 0.0;
|
| -}
|
| -
|
| -PassRefPtr<TimeRanges> WebMediaPlayerClientImpl::buffered() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return TimeRanges::create(m_webMediaPlayer->buffered());
|
| - return TimeRanges::create();
|
| -}
|
| -
|
| -bool WebMediaPlayerClientImpl::didLoadingProgress() const
|
| -{
|
| - return m_webMediaPlayer && m_webMediaPlayer->didLoadingProgress();
|
| -}
|
| -
|
| void WebMediaPlayerClientImpl::paint(GraphicsContext* context, const IntRect& rect)
|
| {
|
| // Normally GraphicsContext operations do nothing when painting is disabled.
|
| @@ -339,7 +310,6 @@ void WebMediaPlayerClientImpl::paintOnAndroid(WebCore::GraphicsContext* context,
|
| WebMediaPlayerClientImpl::WebMediaPlayerClientImpl(MediaPlayerClient* client)
|
| : m_client(client)
|
| , m_preload(MediaPlayer::Auto)
|
| - , m_rate(1.0)
|
| #if OS(ANDROID)
|
| , m_usePaintOnAndroid(false)
|
| #endif
|
|
|