mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 09:32:12 +00:00
428 B
428 B
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:
cd examples/browser/web
npm install
npm run dev
Proxy:
deno run --allow-net --allow-read examples/browser/proxy/deno.ts