Closed
Bug 797796
Opened 13 years ago
Closed 13 years ago
getUserMedia backend needs to pass all necessary data to the UI
Categories
(Core :: WebRTC, defect)
Core
WebRTC
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: dao, Assigned: anant)
References
Details
(Whiteboard: [getUserMedia] [blocking-gum+] [qa-])
Attachments
(1 file, 2 obsolete files)
9.59 KB,
patch
|
jesup
:
review+
|
Details | Diff | Splinter Review |
data needed:
- DOM window
- nsIMediaStreamOptions
- id or handle for the UI to approve or deny the request
Reporter | ||
Updated•13 years ago
|
Whiteboard: [getUserMedia] [blocking-gum+]
Assignee | ||
Comment 1•13 years ago
|
||
The only change from the patch in bug 729522 is that we now pass a JSON structure with the windowID and callID instead of just the callID.
Attachment #668105 -
Flags: review?(rjesup)
Assignee | ||
Comment 2•13 years ago
|
||
Forgot to qref :/
Attachment #668105 -
Attachment is obsolete: true
Attachment #668105 -
Flags: review?(rjesup)
Attachment #668106 -
Flags: review?(rjesup)
Assignee | ||
Comment 3•13 years ago
|
||
Pass outer window ID instead of inner window ID.
Attachment #668106 -
Attachment is obsolete: true
Attachment #668106 -
Flags: review?(rjesup)
Attachment #668183 -
Flags: review?(rjesup)
Comment 4•13 years ago
|
||
Comment on attachment 668183 [details] [diff] [review]
Hookup gUM backend with the UI
Review of attachment 668183 [details] [diff] [review]:
-----------------------------------------------------------------
r=jesup with the snprintf(windowBuffer,sizeof(windowBuffer),...)
::: dom/media/MediaManager.cpp
@@ +390,5 @@
> + Denied()
> + {
> + if (NS_IsMainThread()) {
> + nsCOMPtr<nsIDOMGetUserMediaErrorCallback> error(mError);
> + error->OnError(NS_LITERAL_STRING("PERMISSION_DENIED"));
trailing space
@@ +725,5 @@
> + data.Append(NS_LITERAL_STRING("{\"windowID\":"));
> +
> + // Convert window ID to string.
> + char windowBuffer[32];
> + sprintf(windowBuffer, "%ld", aWindow->GetOuterWindow()->WindowID());
paranoia: snprintf please. Yes, I know MAX_UINT64_T is less than 32 characters
@@ +822,5 @@
> + // Close off any remaining active windows.
> + mActiveWindows.Clear();
> + mActiveCallbacks.Clear();
> + sSingleton = nullptr;
> +
trialing spaces a couple of places here. Search the file for them. Emacs has a function (of course)
Attachment #668183 -
Flags: review?(rjesup) → review+
Reporter | ||
Comment 5•13 years ago
|
||
What happens with regards to audio if both video and audio are requested and the front-end sends getUserMedia:response:allow for a particular video device?
Assignee | ||
Comment 6•13 years ago
|
||
The default audio device will be selected. I guess we'll need a way to signal a specific audio device as well. Right now, getUserMedia can only return a stream from a single device, but this is an issue when we fix that bug.
Since we have to pass an object across the event using the subject parameter, the only way I can think of doing this is with two getUserMedia:response:allow messages, with the first one signaling somehow that there is another event on the way.
Assignee | ||
Comment 7•13 years ago
|
||
![]() |
||
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
![]() |
||
Updated•13 years ago
|
Whiteboard: [getUserMedia] [blocking-gum+] → [getUserMedia] [blocking-gum+] [qa-]
![]() |
||
Updated•13 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•