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

Side by Side Diff: content/test/data/media/mediarecorder_test.html

Issue 2801803002: Android: enable H264&VP8 HW accelerator for MediaRecorder (Closed)
Patch Set: remove unnecessary comments Created 3 years, 8 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>MediaStream Recoder Browser Test (w/ MediaSource)</title> 4 <title>MediaStream Recoder Browser Test (w/ MediaSource)</title>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div> Record Real-Time video content browser test.</div> 7 <div> Record Real-Time video content browser test.</div>
8 <video id="video" autoplay></video> 8 <video id="video" autoplay></video>
9 <video id="remoteVideo" autoplay></video> 9 <video id="remoteVideo" autoplay></video>
10 </body> 10 </body>
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 reportTestSuccess(); 537 reportTestSuccess();
538 }); 538 });
539 } 539 }
540 540
541 // Tests that MediaRecorder can handle video input with alpha channel. 541 // Tests that MediaRecorder can handle video input with alpha channel.
542 function testRecordWithTransparency(mimeType) { 542 function testRecordWithTransparency(mimeType) {
543 const ON_DATA_AVAILABLE_THRESHOLD = 10; 543 const ON_DATA_AVAILABLE_THRESHOLD = 10;
544 const NUMBER_OF_EVENTS_TO_RECORD = 5; 544 const NUMBER_OF_EVENTS_TO_RECORD = 5;
545 545
546 var canvas = document.createElement('canvas'); 546 var canvas = document.createElement('canvas');
547 canvas.width = canvas.height = 64; 547 canvas.width = 320;
548 canvas.height = 240;
mcasas 2017/04/19 22:32:46 IIUC you're changing these numbers to avoid using
braveyao 2017/04/20 18:17:29 Can't figure out another way for this HTML file, e
mcasas 2017/04/20 19:18:37 If the concern is H264 and transparency, that comb
braveyao 2017/04/20 22:37:35 Done.
548 var stream = canvas.captureStream(); 549 var stream = canvas.captureStream();
549 assertTrue(stream, 'Error creating MediaStream'); 550 assertTrue(stream, 'Error creating MediaStream');
550 assertEquals(1, stream.getVideoTracks().length); 551 assertEquals(1, stream.getVideoTracks().length);
551 assertEquals(0, stream.getAudioTracks().length); 552 assertEquals(0, stream.getAudioTracks().length);
552 var recordedEvents = 0; 553 var recordedEvents = 0;
553 554
554 function drawOnCanvas(canvas) { 555 function drawOnCanvas(canvas) {
555 var ctx = canvas.getContext('2d', {alpha: true}); 556 var ctx = canvas.getContext('2d', {alpha: true});
556 ctx.fillStyle = 'green'; 557 ctx.fillStyle = 'green';
557 ctx.fillRect(0, 0, canvas.width, canvas.height); 558 ctx.fillRect(0, 0, canvas.width, canvas.height);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 return failTest(err.toString()); 655 return failTest(err.toString());
655 }) 656 })
656 .then(function() { 657 .then(function() {
657 reportTestSuccess(); 658 reportTestSuccess();
658 }); 659 });
659 } 660 }
660 661
661 </script> 662 </script>
662 </body> 663 </body>
663 </html> 664 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698