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

Side by Side Diff: media/test/data/eme_player_js/media_source_utils.js

Issue 408993002: Have media content and chrome browser tests load data from media/test/data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/test/data/eme_player_js/globals.js ('k') | media/test/data/eme_player_js/player_utils.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // MediaSourceUtils provides basic functionality to load content using MSE API. 5 // MediaSourceUtils provides basic functionality to load content using MSE API.
6 var MediaSourceUtils = new function() { 6 var MediaSourceUtils = new function() {
7 } 7 }
8 8
9 MediaSourceUtils.loadMediaSourceFromTestConfig = function(testConfig, 9 MediaSourceUtils.loadMediaSourceFromTestConfig = function(testConfig,
10 appendCallbackFn) { 10 appendCallbackFn) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 srcBuffer.addEventListener('updateend', onUpdateEnd); 61 srcBuffer.addEventListener('updateend', onUpdateEnd);
62 srcBuffer.appendBuffer(new Uint8Array(e.target.response)); 62 srcBuffer.appendBuffer(new Uint8Array(e.target.response));
63 }); 63 });
64 xhr.send(); 64 xhr.send();
65 } 65 }
66 66
67 var mediaSource = new MediaSource(); 67 var mediaSource = new MediaSource();
68 mediaSource.addEventListener('sourceopen', onSourceOpen); 68 mediaSource.addEventListener('sourceopen', onSourceOpen);
69 return mediaSource; 69 return mediaSource;
70 }; 70 };
OLDNEW
« no previous file with comments | « media/test/data/eme_player_js/globals.js ('k') | media/test/data/eme_player_js/player_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698