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

Side by Side Diff: LayoutTests/http/tests/media/media-source/mediasource-play.html

Issue 16625011: Add minimal implementation of unprefixed MediaSource API that has feature parity with prefixed API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix global-constructors-listing-expected.txt Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/w3c/resources/testharness.js"></script>
5 <script src="/w3c/resources/testharnessreport.js"></script>
6 <script src="mediasource-util.js"></script>
7 <link rel='stylesheet' href='/w3c/resources/testharness.css'>
8 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 mediasource_test(function(test, mediaElement, mediaSource)
13 {
14 test.failOnEvent(mediaElement, 'error');
15 test.endOnEvent(mediaElement, 'ended');
16
17 var mediaType = 'video/webm;codecs="vp8,vorbis"';
18 var mediaURL = '/media/resources/media-source/webm/test.webm';
19 var sourceBuffer = mediaSource.addSourceBuffer(mediaType);
20
21 MediaSourceUtil.loadBinaryData(test, mediaURL, function(data)
22 {
23 sourceBuffer.addEventListener('updateend', test.step_func(func tion()
24 {
25 mediaSource.duration = 1;
26 mediaSource.endOfStream();
27 mediaElement.play();
28 }));
29 sourceBuffer.appendBuffer(data);
30 });
31 }, "Test normal playback case with MediaSource API");
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698