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 59147
Disable MediaPlayerPrivateAVFoundation when using old full screen mode.
https://bugs.webkit.org/show_bug.cgi?id=59147
Summary
Disable MediaPlayerPrivateAVFoundation when using old full screen mode.
Jer Noble
Reported
2011-04-21 15:17:38 PDT
If the ChromeClient indicates the client supports the old full screen mode, but does not support the new full screen mode, disable AVFoundation playback, so that full screen mode continues to work.
Attachments
Patch
(9.47 KB, patch)
2011-04-22 00:49 PDT
,
Jer Noble
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2011-04-21 15:18:01 PDT
<
rdar://problem/9320415
>
Jer Noble
Comment 2
2011-04-22 00:49:56 PDT
Created
attachment 90676
[details]
Patch
Maciej Stachowiak
Comment 3
2011-04-22 01:36:38 PDT
Comment on
attachment 90676
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=90676&action=review
> Source/WebKit/mac/WebView/WebView.mm:1565 > +#if ENABLE(FULLSCREEN_API) > + if (![preferences fullScreenEnabled]) > + settings->setAVFoundationEnabled(false); > + else > +#endif
I'm not sure I understand the logic here. If the full screen API is compiled in, and a client doesn't have it enabled, then we force AVFoundation off. But if fullscreen API wasn't compiled in at all, wouldn't we still want AVFoundation turned off? This probably doesn't matter, since we won't actually face that combination of settings.
Jer Noble
Comment 4
2011-04-22 01:42:45 PDT
(In reply to
comment #3
)
> (From update of
attachment 90676
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=90676&action=review
> > > Source/WebKit/mac/WebView/WebView.mm:1565 > > +#if ENABLE(FULLSCREEN_API) > > + if (![preferences fullScreenEnabled]) > > + settings->setAVFoundationEnabled(false); > > + else > > +#endif > > I'm not sure I understand the logic here. If the full screen API is compiled in, and a client doesn't have it enabled, then we force AVFoundation off. But if fullscreen API wasn't compiled in at all, wouldn't we still want AVFoundation turned off? This probably doesn't matter, since we won't actually face that combination of settings.
That's a good point. I'll refactor this part so that AVFoundation gets disabled if FULLSCREEN_API is turned off.
Jer Noble
Comment 5
2011-04-22 10:51:23 PDT
Committed
r84646
: <
http://trac.webkit.org/changeset/84646
>
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