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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/media/video-player.html
diff --git a/content/test/data/media/video-player.html b/content/test/data/media/video-player.html
new file mode 100644
index 0000000000000000000000000000000000000000..ac91e6e624f0536b206768eb4ea1668503ec6031
--- /dev/null
+++ b/content/test/data/media/video-player.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Video Player Test</title>
+ <meta name=viewport content='width=device-width initial-scale=1.0'>
+</head>
+<body>
+ <video controls id=video src=bear.webm></video>
+ <button id='fullscreen'>fullscreen</button>
+</body>
+<script>
+ document.querySelector('#fullscreen').addEventListener('click', _ => {
+ document.querySelector('video').webkitRequestFullscreen();
+ }, { once: true });
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698