On Tue, Dec 9, 2014 at 11:29 PM, <[email protected]> wrote:

> 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?
>

Not to my knowledge. We generally try not to tell sites why things they
asked for were rejected.




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?
>

https://wiki.mozilla.org/Screensharing

-Ekr


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

Reply via email to