| Index: Source/web/WebMediaPlayerClientImpl.cpp
|
| diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
|
| index a08c3410133bcb02e1e4edbca30030e74fe37607..e5672bf9e9edee66b14e8982434994d5750534d3 100644
|
| --- a/Source/web/WebMediaPlayerClientImpl.cpp
|
| +++ b/Source/web/WebMediaPlayerClientImpl.cpp
|
| @@ -229,6 +229,8 @@ void WebMediaPlayerClientImpl::loadInternal()
|
| // FIXME: Remove this cast
|
| Frame* frame = static_cast<HTMLMediaElement*>(m_client)->document().frame();
|
|
|
| + WebURL poster = m_client->mediaPlayerPosterURL();
|
| +
|
| // This does not actually check whether the hardware can support accelerated
|
| // compositing, but only if the flag is set. However, this is checked lazily
|
| // in WebViewImpl::setIsAcceleratedCompositingActive() and will fail there
|
| @@ -242,6 +244,9 @@ void WebMediaPlayerClientImpl::loadInternal()
|
| m_audioSourceProvider.wrap(m_webMediaPlayer->audioSourceProvider());
|
| #endif
|
|
|
| + // Tell WebMediaPlayer about the poster image URL.
|
| + m_webMediaPlayer->setPoster(poster);
|
| +
|
| // Tell WebMediaPlayer about any connected CDM (may be null).
|
| m_webMediaPlayer->setContentDecryptionModule(m_cdm);
|
|
|
| @@ -407,6 +412,12 @@ void WebMediaPlayerClientImpl::setMuted(bool muted)
|
| m_webMediaPlayer->setVolume(muted ? 0 : m_volume);
|
| }
|
|
|
| +void WebMediaPlayerClientImpl::setPoster(const KURL& poster)
|
| +{
|
| + if (m_webMediaPlayer)
|
| + m_webMediaPlayer->setPoster(WebURL(poster));
|
| +}
|
| +
|
| MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const
|
| {
|
| if (m_webMediaPlayer)
|
|
|