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

Unified Diff: LayoutTests/fullscreen/resources/video.html

Issue 187193002: Fix an issue that subtitle is not shown for native fullscreen video that is inside an iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressing comments Created 6 years, 10 months 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: LayoutTests/fullscreen/resources/video.html
diff --git a/LayoutTests/fullscreen/resources/video.html b/LayoutTests/fullscreen/resources/video.html
new file mode 100644
index 0000000000000000000000000000000000000000..8d0e945272689ed7c9b7d7b51f763360cdd9a07d
--- /dev/null
+++ b/LayoutTests/fullscreen/resources/video.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../media/media-file.js"></script>
+<script>
+function canplaythrough() {
+ parent.postMessage("Video loaded", "*");
+}
+
+function fullscreenChanged() {
+ parent.postMessage("SUCCEED - entered full screen!", "*");
+}
+
+onload = function() {
+ var video = document.getElementById('video');
+ var mediaFile = findMediaFile("video", "../../media/content/test");
+ video.src = mediaFile;
+ video.addEventListener('canplaythrough', canplaythrough);
+ video.addEventListener('webkitfullscreenchange', fullscreenChanged);
+ video.onclick = function() {
+ video.webkitRequestFullscreen();
+ };
+}
+</script>
+<video id="video" controls width="320" height="240"></video>

Powered by Google App Engine
This is Rietveld 408576698