3 ms·
One question. > The browser provides APIs for accessing cameras and microphones, but users must first give permission. Deno provides analogous behaviour in the
by genezeta 6y ago
One question.
> The browser provides APIs for accessing cameras and microphones, but users must first give permission. Deno provides analogous behaviour in the terminal.
I read this and I started looking around for the camera API or maybe for the Audio API. And the thing is that I can't seem to find anything about it. I can't see anything about it in "The Manual" or in the API reference.
Then I thought that there may not be documentation because it just mimics the browser's API. Ok, but... there must be some command-line flag to give permission to it, right? Can't find it either. Maybe "it was just an example; there's no media API just yet"?
But then I set out to find available command-line flags in general. And I can't find those either. There's this [0] but is that all? There's just --allow-net, --allow-read and --allow-write? Or is there some other place where the available permission flags are listed?
[0] https://deno.land/manual/getting_started/permissions https://deno.land/manual/getting_started/permissions
- inglor 6y agoConfirming that there is no media API in Deno.
- genezeta 6y agoThanks.
- DougBTX 6y agoI don't see it listed in the docs, but try running `deno run -h` to see the command line help. It should produce output like: -A, --allow-all Allow all permissions --allow-env Allow environment access --allow-hrtime Allow high resolution time measurement --allow-net=<allow-net> Allow network access --allow-plugin Allow loading plugins --allow-read=<allow-read> Allow file system read access --allow-run Allow running subprocesses --allow-write=<allow-write> Allow file system write access etc
- genezeta 6y agoThanks.
- iillexial 6y agoDeno does not provide API to Video & Audio. It was just an analogy.