mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 11:02:10 +00:00
Bumps the npm_and_yarn group with 1 update in the /examples/browser/web directory: [tmp](https://github.com/raszi/node-tmp). Updates `tmp` from 0.2.5 to 0.2.7 - [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md) - [Commits](https://github.com/raszi/node-tmp/compare/v0.2.5...v0.2.7) --- updated-dependencies: - dependency-name: tmp dependency-version: 0.2.7 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
⚠️ Warning: This example is outdated.
Please check out kira or sabr-shaka-example for up-to-date browser usage.
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