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

Unified Diff: trunk/src/media/test/data/media_source_player.html

Issue 383063009: Revert 282795 "Have media content and chrome browser tests load ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/media/test/data/media_source_player.html
===================================================================
--- trunk/src/media/test/data/media_source_player.html (revision 282811)
+++ trunk/src/media/test/data/media_source_player.html (working copy)
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Media Source Player</title>
- </head>
- <body onload="runTest();">
- <video controls></video>
- <script src='eme_player_js/app_loader.js' type='text/javascript'></script>
- <script type="text/javascript">
- var video = document.querySelector('video');
-
- function onTimeUpdate() {
- video.removeEventListener('timeupdate', onTimeUpdate);
- video.currentTime = 0.9 * video.duration;
- }
-
- function onSeeked() {
- video.removeEventListener('ended', Utils.failTest);
- Utils.installTitleEventHandler(video, 'ended');
- }
-
- // The test completes after media starts playing, seeks to 0.9 of
- // duration and fires the ended event.
- // The test stops when an error or ended event fire unexpectedly.
- function runTest() {
- var testConfig = new TestConfig();
- testConfig.loadQueryParams();
- Utils.installTitleEventHandler(video, 'error');
- video.addEventListener('ended', Utils.failTest);
- video.addEventListener('seeked', onSeeked);
- video.addEventListener('timeupdate', onTimeUpdate);
- var source = MediaSourceUtils.loadMediaSourceFromTestConfig(testConfig);
- video.src = window.URL.createObjectURL(source);
- video.play();
- }
- </script>
- </body>
-</html>
« no previous file with comments | « trunk/src/media/test/data/encrypted_frame_size_change.html ('k') | trunk/src/media/test/data/mse_config_change.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698