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

Unified Diff: chrome/test/data/media/player.html

Issue 10828015: Delete duplicate chrome/test/data/media files that were copied in r148190 in preparation for r14834… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/test/data/media/bear_silent.webm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/media/player.html
===================================================================
--- chrome/test/data/media/player.html (revision 148353)
+++ chrome/test/data/media/player.html (working copy)
@@ -1,45 +0,0 @@
-<html>
-<body>
-<div id="player_container"></div>
-<script>
-var player = null;
-function InstallEventHandler(event, action) {
- player.addEventListener(event, function(e) {
- eval(action);
- }, false);
-}
-
-// Parse the location and load the media file accordingly.
-var url = window.location.href;
-var url_parts = url.split('?');
-
-// Make sure the URL is of the form "player.html?query".
-var ok = false;
-if (url_parts.length > 1) {
- var query = url_parts[1];
- var query_parts = query.split('=');
- if (query_parts.length == 2) {
- var tag = query_parts[0];
- var media_url = query_parts[1];
- if (tag == 'audio' || tag == 'video') {
- ok = true;
- var container = document.getElementById('player_container');
- container.innerHTML = '<' + tag + ' controls id="player"></' + tag + '>';
- player = document.getElementById('player');
-
- // Install event handlers.
- InstallEventHandler('error', 'document.title = "ERROR"');
- InstallEventHandler('playing', 'document.title = "PLAYING"');
-
- // Starts the player.
- player.src = media_url;
- player.play();
- }
- }
-}
-if (!ok) {
- document.title = 'FAILED';
-}
-</script>
-</body>
-</html>
« no previous file with comments | « chrome/test/data/media/bear_silent.webm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698