From 60c20e2c82ce8e30ed50d207e38ded305cfd37d0 Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Fri, 18 Feb 2022 04:52:58 -0500 Subject: [PATCH] Add files via upload --- examples/chatoverlay.html | 162 ++++++++++++++++++++++++++++++++++++++ examples/index.html | 7 +- examples/twitch.html | 9 ++- examples/youtube.html | 129 ++++++++++++++++++++++++++++++ 4 files changed, 304 insertions(+), 3 deletions(-) create mode 100644 examples/chatoverlay.html create mode 100644 examples/youtube.html diff --git a/examples/chatoverlay.html b/examples/chatoverlay.html new file mode 100644 index 0000000..0e9ab05 --- /dev/null +++ b/examples/chatoverlay.html @@ -0,0 +1,162 @@ + + + + + OBSN Chat Overlay + + + + + + diff --git a/examples/index.html b/examples/index.html index 5519728..c8b1feb 100644 --- a/examples/index.html +++ b/examples/index.html @@ -77,6 +77,11 @@
How to have a twitch live chat side-by-side with VDO.NInja on the same screen
+
+

youtube

+
How to have a youtube live chat side-by-side with VDO.NInja on the same + screen
+

dual

how to have two VDO.Ninja windows (or any windows really) open on the same @@ -112,7 +117,7 @@ layout of elements. (experimental)
-

chat

+

chat

Example of a chat-only interface for VDO.Ninja; maybe dockable into OBS even.
diff --git a/examples/twitch.html b/examples/twitch.html index 17ea7fe..03e627b 100644 --- a/examples/twitch.html +++ b/examples/twitch.html @@ -64,7 +64,7 @@ input{
- +
@@ -85,8 +85,13 @@ function loadIframes(url=false){ document.getElementById("container2").style.display="inline-block"; var path = window.location.host+window.location.pathname.split("/").slice(0,-1).join("/"); + path = path.replace("/examples",""); - var room1 = "https://"+path+"/?push="+roomname+"&webcam&autostart&vd=front&ad=1&transparent&noheader"; + if (roomname.startsWith("https://")){ + var room1 = roomname; + } else { + var room1 = "https://"+path+"/?push="+roomname+"&webcam&autostart&vd=front&ad=1&transparent&noheader"; + } var room2 = "https://www.twitch.tv/embed/"+twitch+"/chat?parent="+location.hostname; var iframe = document.createElement("iframe"); iframe.allow = "autoplay;camera;microphone;fullscreen;picture-in-picture;"; diff --git a/examples/youtube.html b/examples/youtube.html new file mode 100644 index 0000000..f9f4a1f --- /dev/null +++ b/examples/youtube.html @@ -0,0 +1,129 @@ + +YouTube Chat + VDON + + + + + + + + +
+
+
+ + + + +
+ + + \ No newline at end of file