MozillaReality / horizon

(2015) Horizon was an experimental VR browser built on web standards using CSS-VR.
http://mozvr.github.io/horizon/web/
Other
1 stars 0 forks source link

handle getUserMedia permission requests (camera, mic, etc) #245

Open caseyyee opened 8 years ago

caseyyee commented 8 years ago

Not sure how this is handled with Graphene and/or Gaia.

KevinGrandon commented 8 years ago

We just need to listen for a mozChromeEvent of type permission-prompt. After prompting the user we need to fire off a mozContentEvent with either permission-allow or permission-deny, potentially indicating request ID and device choices to gecko.

I don't mind hooking this up if it would be helpful. I'm not really sure what a permission prompt in VR should look like though!

cvan commented 8 years ago

oh, that's how it works? neat.

once we have https://w3c.github.io/permissions/ it'll be great to be able to do that from normal content.