From 3665e2fc1323d71beb1704b3382ce7c26b7a769d Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Fri, 18 Feb 2022 04:52:29 -0500 Subject: [PATCH 1/4] trying to fix disconnect / reconnection IRL issues --- index.html | 4 ++-- main.js | 6 +++--- webrtc.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 0873541..f881ef6 100644 --- a/index.html +++ b/index.html @@ -79,7 +79,7 @@ - + +
+

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 From f68ae33cadacf83b0503825377381103a16c6658 Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Fri, 18 Feb 2022 04:53:25 -0500 Subject: [PATCH 3/4] Add files via upload From b975115e69b94579c5dc75b23edad76508450738 Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Fri, 1 Apr 2022 04:23:48 -0400 Subject: [PATCH 4/4] Add files via upload --- dock.html | 2 +- index.html | 27 +- lib.js | 1030 ++++++++++++++++++++++++++++------------------------ main.js | 69 +++- mixer.html | 55 ++- webrtc.js | 2 +- 6 files changed, 686 insertions(+), 499 deletions(-) diff --git a/dock.html b/dock.html index 2c910f0..df0ff58 100644 --- a/dock.html +++ b/dock.html @@ -163,7 +163,7 @@ function generateInvite(){ var href = window.location.href; var dir = href.substring(0, href.lastIndexOf('/')) + "/"; - var salt = location.hostname; // "obs.ninja" is the expected default. You will want to change this if hosting dock.html locally. + var salt = location.hostname; // "vdo.ninja" is the expected default. You will want to change this if hosting dock.html locally. if (getById("invite_password").value.trim().length){ generateHash(getById("invite_password").value.trim().replace(/[\W]+/g,"_")+salt,4).then(function(hash){ diff --git a/index.html b/index.html index f881ef6..3d31b28 100644 --- a/index.html +++ b/index.html @@ -79,7 +79,7 @@ - +