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

Side by Side Diff: chrome/test/data/media/html/media_track.html

Issue 9666032: Cleanup deprecated PyAuto media tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update year. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/media/html/media_perf.html ('k') | chrome/test/data/media/html/player.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!--
2 This HTML file contains a div for a player which is used for track testing
3 (chrome/test/functional/media_track.py). This file is modification of
4 http://www.annacavender.com/track/demo1/trackdemo.html.
5
6 The query string should contain the following information:
7 tag (optional): HTML video/audio tag (default is video).
8 media (required): media file name.
9 t (optional): if specified, disables the media cache.
10 track (required): the name of the track file (out-of-band).
11
12 Example: "media_track.html?tag=video&media=foo.webm&track=track.vtt"
13 -->
14 <html>
15 <body onload="getTrackInfo()">
16 <div id='player_container'></div>
17 <textarea rows="50" cols="50" id="text"> Default text.
18 </textarea>
19 <script type='text/javascript' src='player.js'></script>
20 <script>
21 function getTrackInfo() {
22 var tr = document.getElementById('track');
23 var ta = document.getElementById('text');
24 ta.value = "track src = " + tr.src + "\n";
25 ta.value += "track srclang = " + tr.srclang + "\n";
26 ta.value += "track kind = " + tr.kind + "\n";
27 ta.value += "track label = " + tr.label + "\n";
28 ta.value += "track default = " + tr.getAttribute('default') + "\n\n";
29 ta.value += "CUES: (" + tr.track.cues.length + ")\n";
30 for (var i = 0; i < tr.track.cues.length; i++) {
31 ta.value += tr.track.cues[i].id + ": ";
32 ta.value += tr.track.cues[i].startTime + " --> " + tr.track.cues[i].endTime
33 + "\n";
34 ta.value += tr.track.cues[i].getCueAsSource() + "\n";
35 }
36 ta.value += "END\n";
37 }
38
39 if (ok) {
40 player.play();
41 }
42 </script>
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/media/html/media_perf.html ('k') | chrome/test/data/media/html/player.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698