diff options
author | Andrei Popescu <andreip@google.com> | 2009-09-15 13:09:27 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-09-17 11:28:35 +0100 |
commit | 2471bb64fd133cc64b2048b1fb90c84e08c24a16 (patch) | |
tree | d84cb2020b3bf8eaaddcf5c58a2bca37f39d7e40 /WebCore/platform/graphics/MediaPlayer.cpp | |
parent | bc6b2da0df432c910e5423406a1b7834591d4f6e (diff) | |
download | external_webkit-2471bb64fd133cc64b2048b1fb90c84e08c24a16.zip external_webkit-2471bb64fd133cc64b2048b1fb90c84e08c24a16.tar.gz external_webkit-2471bb64fd133cc64b2048b1fb90c84e08c24a16.tar.bz2 |
Add poster support and other fixes
Diffstat (limited to 'WebCore/platform/graphics/MediaPlayer.cpp')
-rw-r--r-- | WebCore/platform/graphics/MediaPlayer.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/MediaPlayer.cpp b/WebCore/platform/graphics/MediaPlayer.cpp index 6205a7b..15815dc 100644 --- a/WebCore/platform/graphics/MediaPlayer.cpp +++ b/WebCore/platform/graphics/MediaPlayer.cpp @@ -104,6 +104,11 @@ public: virtual void paint(GraphicsContext*, const IntRect&) { } +#if PLATFORM(ANDROID) + virtual bool canLoadPoster() const { return false; } + virtual void setPoster(const String&) { } +#endif + #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) virtual void setPoster(const String& /*url*/) { } virtual void deliverNotification(MediaPlayerProxyNotificationType) { } @@ -253,11 +258,18 @@ void MediaPlayer::load(const String& url, const ContentType& contentType) m_private.set(createNullMediaPlayer(this)); } -#if ENABLE(PLUGIN_PROXY_FOR_VIDEO) +#if PLATFORM(ANDROID) +bool MediaPlayer::canLoadPoster() const +{ + return m_private->canLoadPoster(); +} +#endif + +#if ENABLE(PLUGIN_PROXY_FOR_VIDEO) || PLATFORM(ANDROID) void MediaPlayer::setPoster(const String& url) { m_private->setPoster(url); -} +} #endif void MediaPlayer::cancelLoad() |