WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED LATER
67888
[Chromium] Add startFullscreen to WebMediaPlayer for Android
https://bugs.webkit.org/show_bug.cgi?id=67888
Summary
[Chromium] Add startFullscreen to WebMediaPlayer for Android
Adam Barth
Reported
2011-09-10 01:43:43 PDT
[Chromium] Add startFullscreen to WebMediaPlayer for Android
Attachments
Patch
(18.66 KB, patch)
2011-09-10 01:47 PDT
,
Adam Barth
abarth
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2011-09-10 01:47:46 PDT
Created
attachment 106972
[details]
Patch
Eric Seidel (no email)
Comment 2
2011-09-19 15:46:40 PDT
Jer is a good person to get to comment on this since he designed the fullscreen stuff.
Jer Noble
Comment 3
2011-09-19 16:05:39 PDT
Comment on
attachment 106972
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=106972&action=review
> Source/WebCore/ChangeLog:12 > + When an HTMLMediaElement on Android goes fullscreen, it needs the > + WebMediaPlayer to help make that happen. It's slighly unclear to me > + why this work can't be done by the ChromeClient (essentially > + special-casing HTMLMediaElement there), but this approach also seems > + reasonable.
Doing it at the ChromeClient level would make more sense, given that the client is probably in the best position to know whether or not the full screen request will be honored. As it stands, the full screen request could be rejected and the startFullScreen() call would be all for naught.
> Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp:241 > - if (m_webMediaPlayer.get()) > + if (m_webMediaPlayer)
There are a ton of these; could they be factored out into a separate patch?
> Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp:279 > +#if OS(ANDROID) > +void WebMediaPlayerClientImpl::startFullscreen() > +{ > + if (m_webMediaPlayer) > + m_webMediaPlayer->startFullscreen(); > +} > +#endif
What does this do?
Jer Noble
Comment 4
2011-09-19 16:08:44 PDT
...additionally, the new Full Screen API has settled on "Full Screen" (in text), "full-screen" (in css) and "fullScreen" (in code), instead of "fullscreen". We should try to be consistent.
Adam Barth
Comment 5
2011-09-19 16:09:32 PDT
Comment on
attachment 106972
[details]
Patch ok
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