| 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) {
|
|
|