Closed Bug 963481 Opened 11 years ago Closed 11 years ago

[Media Recorder] Implement MediaRecorder Constrainable Properties

Categories

(Core :: Audio/Video: Recording, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 959490

People

(Reporter: rlin, Assigned: rlin)

Details

Assignee: nobody → rlin
Hi Robert, If we want let application to choose the mimeType that platform already supported. Is it suitable to use the constrain to pass the mimeType to encoder? BTW, on js, Does it look like var mr = new MediaRecorder(stream, {mimetype:video/mp4, imageheight:1024, imagewidth:768}) or var mr = new MediaRecorder(stream, {mimetype:audio/opus}) ?
Flags: needinfo?(roc)
According to http://dev.w3.org/2011/webrtc/editor/getusermedia.html the author would do something like this: var mr = new MediaRecorder(stream); mr.applyConstraints({mandatory:{MimeType:"audio/opus"}}, function onsuccess() { ... }, function onerror() { ... }); or mr.applyConstraints({optional:{MimeType:"video/mp4"}, optional:{imageWidth:1024, imageHeight:768}}, function onsuccess() { ... }, function onerror() { ... });
Flags: needinfo?(roc)
Er, I guess that's mr.applyConstraints({optional:[{MimeType:"video/mp4"},imageWidth:1024, imageHeight:768}]}, function onsuccess() { ... }, function onerror() { ... }); I don't like using Constraints here. I posted to the mailing list about it.
Component: Video/Audio → Video/Audio: Recording
No longer blocks: MediaRecording
Already have this capacity on bug 959490. close it.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.