From 0b88575614eb3ca099fb7629bd46fd35ad48dc8f Mon Sep 17 00:00:00 2001 From: LuanRT Date: Thu, 16 Feb 2023 19:32:24 -0300 Subject: [PATCH] docs(browser): add ytjsexample.pages.dev live example --- README.md | 3 ++- examples/browser/README.md | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 181b4253..cd6db460 100644 --- a/README.md +++ b/README.md @@ -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/). + ## Providing your own fetch implementation diff --git a/examples/browser/README.md b/examples/browser/README.md index 19998d14..44232a0e 100644 --- a/examples/browser/README.md +++ b/examples/browser/README.md @@ -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";