Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: content/test/data/media/video-player.html

Issue 2556573003: Media: lock orientation when <video> goes fullscreen. (Closed)
Patch Set: review comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Video Player Test</title>
5 <meta name=viewport content='width=device-width initial-scale=1.0'>
6 </head>
7 <body>
8 <video controls id=video src=bear.webm></video>
9 <button id='fullscreen'>fullscreen</button>
10 </body>
11 <script>
12 document.querySelector('#fullscreen').addEventListener('click', _ => {
13 document.querySelector('video').webkitRequestFullscreen();
14 }, { once: true });
15 </script>
16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698