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

Side by Side 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: Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <head>
esprehn 2014/03/05 00:22:41 needs a doctype and drop the html, head and body
qinmin 2014/03/05 01:34:42 Done.
2 <script src="../../media/media-file.js"></script>
3 <script>
4 function canplaythrough() {
5 parent.postMessage("Video loaded", "*");
6 }
7
8 function fullscreenChanged() {
9 parent.postMessage("SUCCEED - entered full screen!", "*");
10 }
11
12 function runTest() {
esprehn 2014/03/05 00:22:41 onload = function() {
qinmin 2014/03/05 01:34:42 Done.
13 var video = document.getElementById('video');
14 var mediaFile = findMediaFile("video", "../../media/content/test");
15 video.src = mediaFile;
16 video.addEventListener('canplaythrough', canplaythrough);
17 video.addEventListener('webkitfullscreenchange', fullscreenChanged);
18 video.onclick = function() {
19 video.webkitRequestFullscreen();
20 };
21 }
22 </script>
23 </head>
24 <body onload="runTest()">
25 <video id="video" controls width="320" height="240"></video>
26 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698