Closed Bug 952625 Opened 11 years ago Closed 10 years ago

make tab streaming support scrolling and other goodies

Categories

(Core :: WebRTC, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dmosedale, Unassigned)

References

Details

Attachments

(1 file)

Attached file nsITabSource.idl
It'd be very nice for add-ons to be able to experiment with a variety of tab-streaming UIs. After discussion with Brad, I'm attaching a proposed API change which would allow this.
Attachment #8350756 - Attachment mime type: text/x-idl → text/plan
Attachment #8350756 - Attachment mime type: text/plan → text/plain
Blocks: 923228
Comment on attachment 8350756 [details] nsITabSource.idl Sorry, mean to comment on this a couple weeks ago. Turns out our params are a terrible thing in js and optional out params create even more head aches. I can see two options. First, crate an interface that has the nsIDOMWindow, render flags and clip rect and return that. Second have an options TabStreamOptions interface that is an inout param. Let me know what you think dmose.
Flags: needinfo?(dmose)
Would the easiest thing simply be to make the parameters mandatory rather than optional? Making IDL equivalents of the nsIPresShell.h stuff sounds worthwhile.
Flags: needinfo?(dmose)
(The short version is that I don't have super strong opinions here. Just getting something that works, whatever the interface, would be wonderful).
This is already supported by the built-in window sharing implementation: mozGetUserMedia({ videoSource: "browser", constraints: { browserWindow: 42, scrollWithPage: true } }); Note the `scrollWithPage` constraint.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
That syntax looks odd, did you mean: navigator.mediaDevices.getUserMedia({ video: { mediaSource: "browser", browserWindow: 42, scrollWithPage: true } });
(In reply to Jan-Ivar Bruaroey [:jib] from comment #5) > That syntax looks odd, did you mean: > > navigator.mediaDevices.getUserMedia({ video: > { > mediaSource: "browser", > browserWindow: 42, > scrollWithPage: true > } > }); Ahum! Yes, thanks Jan-Ivar, the option passing from Loop -> OpenTok SDK -> gUM is confusing me, obviously.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: