docs(browser): add ytjsexample.pages.dev live example

This commit is contained in:
LuanRT
2023-02-16 19:32:24 -03:00
parent bed0ff4154
commit 0b88575614
2 changed files with 4 additions and 1 deletions

View File

@@ -172,7 +172,8 @@ const player = dashjs.MediaPlayer().create();
player.initialize(videoElement, uri, true);
```
Our browser example in [`examples/browser/web`](https://github.com/LuanRT/YouTube.js/blob/main/examples/browser/web) provides a fully working example.
A fully working example can be found in [`examples/browser/web`](https://github.com/LuanRT/YouTube.js/blob/main/examples/browser/web). Alternatively, you can view it live at [ytjsexample.pages.dev](https://ytjsexample.pages.dev/).
<a name="custom-fetch"></a>
## Providing your own fetch implementation

View File

@@ -8,6 +8,8 @@ To use YouTube.js in the browser you must proxy requests through your own server
We'll use our own fetch implementation to proxy requests through our server. This is a simple example, but you can use any fetch implementation you want.
This example is hosted on [Cloudflare Pages](https://pages.cloudflare.com/) at [ytjsexample.pages.dev](https://ytjsexample.pages.dev/).
```ts
import { Innertube } from "youtubei.js/build/browser";