I've been working on screensharing using Firefox and I now have the basic
case working for window sharing.

That is:

navigator.mozGetUserMedia(
     { video: { mediaSource : "window" } }
,function(stream){

},function(err){

});

Of course, gUM initially failed with "PERMISSION_DENIED" so I had to create
an AddOn to modify the preference
*media.getusermedia.screensharing.allowed_domains* to add my domain name.

1. Is there a way to differentiate between the cases where the domain is
not whitelisted and the user chooses to not share a window at this time?
Both cases return the same PERMISSION_DENIED error.  The sample addon that
I used as my starting point (
https://hg.mozilla.org/users/blassey_mozilla.com/screenshare-whitelist/ )
did not offer a way to be detected from the calling web page, so what is a
good solution to determine when a site must be whitelisted and when the
user has simply said they don't want to share their screen right now?

2. With Chrome's desktopCapture I can pass ['screen','window'] as the
capture source.  In Firefox I have only made it work with either
*mediaSource:"screen"* or *mediaSource:"window"* -- is there a way to allow
the user to select the source from the union of "screen" and "window" ?  If
so, it would make for a simpler user interface in my application.

3. I notice a number of whitelisted domains already present that I never
approved:
*webex.com <http://webex.com>, collaborate.com <http://collaborate.com>,
projectsquared.com <http://projectsquared.com>, room.co <http://room.co>,
talky.io <http://talky.io>*

Why do these sites get special treatment?  Is there a way for other
developers to get their own domain names baked into Firefox's default
preferences?

Thanks for any assistance.
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to