From 3081f996b8f7f3038e53383a72c5c9ca2f6582df Mon Sep 17 00:00:00 2001 From: BarryCarlyon Date: Tue, 26 Nov 2024 11:29:31 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20BarryCar?= =?UTF-8?q?lyon/twitch=5Fmisc@2323d5480ca580b779b00e59cb414d48fb7460b8=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- player/html/README.md | 30 +++++++ player/html/index.html | 196 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 226 insertions(+) create mode 100644 player/html/README.md create mode 100644 player/html/index.html diff --git a/player/html/README.md b/player/html/README.md new file mode 100644 index 0000000..7851983 --- /dev/null +++ b/player/html/README.md @@ -0,0 +1,30 @@ +## What is this example + +This is an example of using the Twitch player and adding a number of Controls to it. + +It uses [Embed Everything](https://dev.twitch.tv/docs/embed/everything) + +Since it uses the JS Embed Library, you do not need to specify the `parent` as the JS Library will work it out for you + +This example is based on this ["Web" Example](https://twitch.extensions.barrycarlyon.co.uk/temp/player_test.html) that exists on my Extensions Website for test purposes + +## TRY THIS EXAMPLE NOW! + +This example is also available via GitHub Pages! + +Give it a [whirl here](https://barrycarlyon.github.io/twitch_misc/player/html/) + +## Reference Documentation + +- [Embed Everything](https://dev.twitch.tv/docs/embed/everything) +- ["Dumb" iFrames](https://dev.twitch.tv/docs/embed/video-and-clips) + +## Running the example + +This is so rough that you need to upload it somewhere or know how to start a WebServer on 127.0.0.1 port 80 locally + +If you have PHP installed + +> sudo php -S 127.0.0.1:80 + +Will get you going real quick diff --git a/player/html/index.html b/player/html/index.html new file mode 100644 index 0000000..aad6a08 --- /dev/null +++ b/player/html/index.html @@ -0,0 +1,196 @@ + + + Twitch Embed example + + + + + +

Get the code for this example on Github or just View the source instead

+ + +
+ +
+
+ + + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+
+
+ + + + +