Capabilities
Camera and microphone
capability-permissions
Camera/microphone: declared in prototir.json, granted via iframe allow= after an explicit shell-level user consent prompt.
- Version
- Part of the Prototir SDK
- License
- -
- Runs on
- Inside the Prototir player, after the player agrees.
Add it
Declare it in prototir.json at the root of your ZIP.
prototir.json
{
"permissions": ["camera", "microphone"]
}Smallest example
Example
{
"permissions": ["camera"]
}Good to know
- Declare "camera" and/or "microphone" in prototir.json. The player is asked before the prototype gets access; then use getUserMedia as usual, or a prefab that does (hand controls, audio features).
As JSON: /modules/capability-permissions.json. Source: manifest permissions + shell consent UI.