Bug 34966 - Autoplaying video with poster doesn't reliably show up
Summary: Autoplaying video with poster doesn't reliably show up
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL: http://www.karelia.com/sandvox/test.html
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-02-15 20:46 PST by Simon Fraser (smfr)
Modified: 2010-02-16 14:03 PST (History)
1 user (show)

See Also:


Attachments
Patch (57.03 KB, patch)
2010-02-15 21:10 PST, Simon Fraser (smfr)
eric.carlson: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2010-02-15 20:46:33 PST
If the <video> is autoplay, and also has a poster, the video doesn't seem to show reliably. If you resize the window, things show up.
Comment 1 Simon Fraser (smfr) 2010-02-15 20:46:50 PST
<rdar://problem/7645531>
Comment 2 Simon Fraser (smfr) 2010-02-15 21:10:53 PST
Created attachment 48788 [details]
Patch
Comment 3 Eric Carlson 2010-02-15 21:45:05 PST
Comment on attachment 48788 [details]
Patch


 22 <video width="480" height="270" type="video/mp4" src="content/test.mp4" poster="content/abe.png" autoplay>

+ <video> doesn't have a 'type' attribute, only <source> does. You should just remove it.


+ Not all ports support MPEG-4, but there are alternate encodings of all of most test movies so instead of hardcoding the src directly in the markup you should include "media-file.js" and set the src in doSetup with 

  video.src = findMediaFile("video", "content/test");


+ We have hardware compositing on Windows, won't it break unless it implements platformLayer()?

r=me with these changes