Closed
Bug 963481
Opened 11 years ago
Closed 11 years ago
[Media Recorder] Implement MediaRecorder Constrainable Properties
Categories
(Core :: Audio/Video: Recording, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 959490
People
(Reporter: rlin, Assigned: rlin)
Details
As Media Recorder Spec
https://dvcs.w3.org/hg/dap/raw-file/tip/media-stream-capture/MediaRecorder.html#properties
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rlin
Assignee | ||
Comment 1•11 years ago
|
||
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)
Updated•11 years ago
|
Blocks: MediaRecording
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.
Updated•11 years ago
|
Component: Video/Audio → Video/Audio: Recording
Updated•11 years ago
|
No longer blocks: MediaRecording
Assignee | ||
Comment 4•11 years ago
|
||
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.
Description
•