Closed
Bug 898396
Opened 12 years ago
Closed 12 years ago
Media Recording - MediaRecorder's mimeType attribute maybe null after call the start()
Categories
(Core :: Audio/Video: Recording, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: rlin, Assigned: rlin)
Details
We set the mimeType when encoder return the first data, so there is a timing issue to cause this value to be null.
![]() |
||
Updated•12 years ago
|
Blocks: MediaRecording
![]() |
Assignee | |
Updated•12 years ago
|
Assignee: nobody → rlin
![]() |
Assignee | |
Comment 1•12 years ago
|
||
Hi Roc,
Should we make mimeType decision in
MediaRecorder:start() function by...
1. User set mimeType preference (not done yet)
2. check the mediaStream has
1. only has video track ->imply record the video/webm or ??
2. only has audio track ->imply record the audio/ogg
3. both->imply record the video/webm or ??
Or let the encoder choose the suitable mimetpye form mediaStream?
Flags: needinfo?(roc)
We need to let the encoder choose the MIME type based on the MediaStream, and we can't do that synchronously in start().
Flags: needinfo?(roc)
![]() |
Assignee | |
Comment 3•12 years ago
|
||
I set this issue to be invalid due to the mimeType would be provided when the encoder start to pass out the encoded data.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
![]() |
||
Comment 4•12 years ago
|
||
(In reply to Randy Lin [:rlin] from comment #3)
> I set this issue to be invalid due to the mimeType would be provided when
> the encoder start to pass out the encoded data.
But how would a web developer know that? Shouldn't we have an onXXX handler to give a web developer knowledge that the mime type has been populated and be ready for use?
Flags: needinfo?(roc)
![]() |
||
Comment 5•12 years ago
|
||
Looking at the spec, the only event handler that might be a potential candidate here to use would be the onstart event handler. Do we need to implement support for that event handler here to allow a web developer to know the mime type is ready for use?
I think probably the MIME type should only be available when the first Blob is delivered.
Flags: needinfo?(roc)
![]() |
||
Updated•12 years ago
|
No longer blocks: 889772, MediaRecording
Updated•12 years ago
|
Component: Video/Audio → Video/Audio: Recording
You need to log in
before you can comment on or make changes to this bug.
Description
•