summaryrefslogtreecommitdiffstats
path: root/WebCore/html
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2009-09-15 13:09:27 +0100
committerAndrei Popescu <andreip@google.com>2009-09-17 11:28:35 +0100
commit2471bb64fd133cc64b2048b1fb90c84e08c24a16 (patch)
treed84cb2020b3bf8eaaddcf5c58a2bca37f39d7e40 /WebCore/html
parentbc6b2da0df432c910e5423406a1b7834591d4f6e (diff)
downloadexternal_webkit-2471bb64fd133cc64b2048b1fb90c84e08c24a16.zip
external_webkit-2471bb64fd133cc64b2048b1fb90c84e08c24a16.tar.gz
external_webkit-2471bb64fd133cc64b2048b1fb90c84e08c24a16.tar.bz2
Add poster support and other fixes
Diffstat (limited to 'WebCore/html')
-rw-r--r--WebCore/html/HTMLMediaElement.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/WebCore/html/HTMLMediaElement.cpp b/WebCore/html/HTMLMediaElement.cpp
index b2e6428..17a3110 100644
--- a/WebCore/html/HTMLMediaElement.cpp
+++ b/WebCore/html/HTMLMediaElement.cpp
@@ -554,7 +554,15 @@ void HTMLMediaElement::loadResource(const KURL& url, ContentType& contentType)
updateVolume();
m_player->load(m_currentSrc, contentType);
-
+
+#if PLATFORM(ANDROID)
+ if (isVideo() && m_player->canLoadPoster()) {
+ KURL posterUrl = static_cast<HTMLVideoElement*>(this)->poster();
+ if (!posterUrl.isEmpty())
+ m_player->setPoster(posterUrl);
+ }
+#endif
+
if (renderer())
renderer()->updateFromElement();
}