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

Unified Diff: content/test/data/media/mediarecorder_test.html

Issue 2315073002: Handle frames sent from peer connection in VideoTrackRecorder (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « content/renderer/media/video_track_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/mediarecorder_test.html
diff --git a/content/test/data/media/mediarecorder_test.html b/content/test/data/media/mediarecorder_test.html
index 72a707f5f6738f5cefc51d4dd2ee2f5d56253069..86e392d3507bec395857fd4c18afae353514ac78 100644
--- a/content/test/data/media/mediarecorder_test.html
+++ b/content/test/data/media/mediarecorder_test.html
@@ -413,15 +413,16 @@ function testIllegalPauseThrowsDOMError() {
}
// Tests that a remote peer connection stream can be successfully recorded.
-function testRecordRemotePeerConnection() {
+function testRecordRemotePeerConnection(codec) {
var videoSize = 0;
var timeStamps = [];
+ const mimeType = codec ? "video/webm;codecs=" + String(codec) : "";
navigator.mediaDevices.getUserMedia(DEFAULT_CONSTRAINTS)
.then(function(localStream) {
return setupPeerConnection(localStream);
})
.then(function(remoteStream) {
- return createMediaRecorder(remoteStream, DEFAULT_RECORDER_MIME_TYPE);
+ return createMediaRecorder(remoteStream, mimeType);
})
.then(function(recorder) {
recorder.ondataavailable = function(event) {
« no previous file with comments | « content/renderer/media/video_track_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698