Files
YouTube.js/examples/browser
dependabot[bot] c9923c19fe chore(deps-dev): bump tmp
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>
2026-05-28 03:28:48 +00:00
..
2024-08-26 20:32:30 -03:00
2026-05-28 03:28:48 +00:00

⚠️ 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