Files
YouTube.js/examples/browser/README.md
2024-08-26 18:42:14 -03:00

19 lines
428 B
Markdown

# Browser Usage
To use YouTube.js in the browser you must proxy requests through your own server. You can see our simple reference implementation in Deno in `examples/browser/proxy/deno.ts`.
## Example
**NOTE**: Build the library before running the examples.
Web application:
```shell
cd examples/browser/web
npm install
npm run dev
```
Proxy:
```shell
deno run --allow-net --allow-read examples/browser/proxy/deno.ts
```