WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 58339
Apple movie trailers play only audio
https://bugs.webkit.org/show_bug.cgi?id=58339
Summary
Apple movie trailers play only audio
Eric Carlson
Reported
2011-04-12 10:06:55 PDT
Movie trailers at
http://trailers.apple.com
play only audio on OS X 10.7 unless the time is changed manually by dragging the timeline thumb.
Attachments
Proposed patch.
(14.98 KB, patch)
2011-04-12 15:47 PDT
,
Eric Carlson
simon.fraser
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2011-04-12 10:07:19 PDT
<
rdar://problem/9237606
>
Eric Carlson
Comment 2
2011-04-12 10:13:58 PDT
This happens because HTMLVideoElement::setDisplayMode assumes that a frame of video will be available immediately after calling a media engine's prepareForRendering function. This is not necessarily the case with AVFoundation so HTMLVideoElement continues to display the @poster, which is a 1x1 white pixel. The solution is to add a mechanism for a media engine to let HTMLMediaElement know when the first frame is ready to render.
Eric Carlson
Comment 3
2011-04-12 15:47:12 PDT
Created
attachment 89286
[details]
Proposed patch.
Jer Noble
Comment 4
2011-04-12 17:03:22 PDT
Comment on
attachment 89286
[details]
Proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=89286&action=review
> Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:494 > + if (!m_haveReportedFirstVideoFrame && m_cachedHasVideo && hasAvailableVideoFrame()) { > + m_haveReportedFirstVideoFrame = true; > + m_player->firstVideoFrameAvailable(); > + } > +
Is -[AVPlayerLayer isReadyForDisplay] KVO-compliant? Because it seems a shame we have to wait for some other notification before checking to see if there's a frame ready to be rendered. ... Apparently it is observable. You could add a new observer so that we run through updateStates() as soon as a frame is ready. But that's just an optimization and not strictly necessary. Looks good to me.
Simon Fraser (smfr)
Comment 5
2011-04-12 17:04:33 PDT
Comment on
attachment 89286
[details]
Proposed patch. r=me with a comment in email
Eric Carlson
Comment 6
2011-04-12 17:04:56 PDT
http://trac.webkit.org/changeset/83667
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug