Closed
Bug 896303
Opened 12 years ago
Closed 12 years ago
Media Recording - Calling start on a MediaRecorder object with no parameters results in ondataavailable events firing, even though they shouldn't be
Categories
(Core :: Audio/Video: Recording, defect)
Core
Audio/Video: Recording
Tracking
()
VERIFIED
FIXED
mozilla25
People
(Reporter: jsmith, Assigned: rlin)
References
Details
(Whiteboard: [MR1.2])
Attachments
(1 file, 1 obsolete file)
1.23 KB,
patch
|
Details | Diff | Splinter Review |
STR
1. Load https://bug891722.bugzilla.mozilla.org/attachment.cgi?id=773094 in Nightly
2. In the console, type mediaRecorder.start();
3. Wait a few seconds
Expected
No ondataavailable events should fire.
Actual
ondataavailable events fire every couple of seconds.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rlin
Assignee | ||
Updated•12 years ago
|
Blocks: MediaRecording
Assignee | ||
Comment 1•12 years ago
|
||
Test case can be:
Call the start() function and check if can invoke the requestData() to get the blob data.
Attachment #779846 -
Flags: review?(roc)
Reporter | ||
Comment 2•12 years ago
|
||
Bonus points btw for a mochitest here.
Assignee | ||
Comment 3•12 years ago
|
||
We can have a common js to get the mediaStream from variety source. :)
Comment on attachment 779846 [details] [diff] [review]
patch v1
Review of attachment 779846 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/MediaRecorder.cpp
@@ +146,5 @@
> for (uint i = 0; i < outputBufs.Length(); i++) {
> mEncodedBufferCache->AppendBuffer(outputBufs[i]);
> }
>
> + if ((TimeStamp::Now() - lastBlobTimeStamp).ToMilliseconds() > mTimeSlice && mTimeSlice > 0) {
Check mTimeSlice > 0 first, since the call to Now() is slightly expensive.
Attachment #779846 -
Flags: review?(roc) → review+
Assignee | ||
Updated•12 years ago
|
Whiteboard: [MR1.2]
Assignee | ||
Comment 5•12 years ago
|
||
check-in patch.
Hi Jason, Could you also cover this test case?
Reporter | ||
Comment 6•12 years ago
|
||
(In reply to Randy Lin [:rlin] from comment #5)
> Created attachment 780289 [details] [diff] [review]
> check-in patch
>
> check-in patch.
> Hi Jason, Could you also cover this test case?
Sure, I can cover it.
Blocks: 889772
Assignee | ||
Updated•12 years ago
|
Whiteboard: [MR1.2] → checkin-needed, [MR1.2]
Reporter | ||
Comment 7•12 years ago
|
||
FYI - checkin-needed is a keyword, not a whiteboard tag.
Keywords: checkin-needed
Whiteboard: checkin-needed, [MR1.2] → [MR1.2]
Updated•12 years ago
|
Attachment #779846 -
Attachment is obsolete: true
Comment 8•12 years ago
|
||
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Reporter | ||
Comment 10•12 years ago
|
||
Verified on trunk - no parameters is correctly not firing ondataavailable events by default. Only requestData and calling stop invokes the ondataavailable event to fire. Also regression tested start with parameters as well to ensure it still works.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Reporter | ||
Comment 11•12 years ago
|
||
Tracking development of mochitest in bug 899878.
Updated•11 years ago
|
Component: Video/Audio → Video/Audio: Recording
Reporter | ||
Updated•11 years ago
|
No longer blocks: MediaRecording
You need to log in
before you can comment on or make changes to this bug.
Description
•