Closed
Bug 889720
Opened 11 years ago
Closed 11 years ago
Media Recording - implement Pause/Resume DOM API
Categories
(Core :: Audio/Video: Recording, defect)
Tracking
()
VERIFIED
FIXED
mozilla25
People
(Reporter: rlin, Assigned: rlin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
6.29 KB,
patch
|
Details | Diff | Splinter Review |
The Bug: 803414 [Audio Recording - Web API & Implementation] just implement the start/stop function. We want to support pause/resume function also.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rlin
Assignee | ||
Updated•11 years ago
|
Summary: Audio Recording - implement pause/resume → Audio Recording - implement Pause/Resume DOM API
Assignee | ||
Comment 1•11 years ago
|
||
Using ChangeExplicitBlockerCount to simulate the pause/resume DOM API.
Attachment #771952 -
Flags: review?(roc)
Assignee | ||
Updated•11 years ago
|
Summary: Audio Recording - implement Pause/Resume DOM API → Media Recording - implement Pause/Resume DOM API
Comment on attachment 771952 [details] [diff] [review] patch v1 Review of attachment 771952 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/MediaRecorder.cpp @@ +172,5 @@ > } > + > + // Create a TrackUnionStream to support Pause/Resume by using ChangeExplicitBlockerCount > + MediaStreamGraph* gm = MediaStreamGraph::GetInstance(); > + mTrackUnionStream = gm->CreateTrackUnionStream(mStream); Use mStream->GetStream()->Graph() instead of calling MediaStreamGraph::GetInstance. @@ +389,5 @@ > + // Avoid crash on closing the browser during record. > + if (!GetOwner() || !mTrackUnionStream->GetWrapper()) > + return false; > + > + nsCOMPtr<nsIPrincipal> principal = mTrackUnionStream->GetWrapper()->GetPrincipal(); I think you can keep using mStream->GetPrincipal().
Assignee | ||
Comment 3•11 years ago
|
||
Fix nits.
Attachment #771952 -
Attachment is obsolete: true
Attachment #771952 -
Flags: review?(roc)
Attachment #775304 -
Flags: review?(roc)
Attachment #775304 -
Flags: review?(roc) → review+
Assignee | ||
Comment 4•11 years ago
|
||
carry reviewer roc.
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 5•11 years ago
|
||
try server result. https://tbpl.mozilla.org/?tree=Try&rev=e0500f9e55d2
Updated•11 years ago
|
Attachment #775304 -
Attachment is obsolete: true
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1990b3e75ab8 Should this have tests?
Flags: in-testsuite?
Keywords: checkin-needed
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1990b3e75ab8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Assignee | ||
Updated•11 years ago
|
Blocks: MediaRecording
Comment 8•11 years ago
|
||
Verified that smoketests of this feature are passing.
Updated•11 years ago
|
Component: Video/Audio → Video/Audio: Recording
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
•