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

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

Issue 308553002: Integrate browser tests with new EME player. (Closed) Base URL: http://git.chromium.org/chromium/src.git@eme_player
Patch Set: nits (small change to EME versions UI) Created 6 years, 6 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
1 // Copyright 2014 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.loadMediaSourceForTest = function() { 9 MediaSourceUtils.loadMediaSourceForTest = function() {
10 return this.loadMediaSource(TestConfig.mediaFile, TestConfig.mediaType); 10 return this.loadMediaSource(TestConfig.mediaFile, TestConfig.mediaType);
11 }; 11 };
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 srcBuffer.addEventListener('updateend', onUpdateEnd); 58 srcBuffer.addEventListener('updateend', onUpdateEnd);
59 srcBuffer.appendBuffer(new Uint8Array(e.target.response)); 59 srcBuffer.appendBuffer(new Uint8Array(e.target.response));
60 }); 60 });
61 xhr.send(); 61 xhr.send();
62 } 62 }
63 63
64 var mediaSource = new MediaSource(); 64 var mediaSource = new MediaSource();
65 mediaSource.addEventListener('sourceopen', onSourceOpen); 65 mediaSource.addEventListener('sourceopen', onSourceOpen);
66 return mediaSource; 66 return mediaSource;
67 }; 67 };
OLDNEW
« no previous file with comments | « chrome/test/data/media/eme_player_js/globals.js ('k') | chrome/test/data/media/eme_player_js/player.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698