From a22388a24b3f6d6fdf2d43efee223d681a2e7bd5 Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Mon, 1 Mar 2021 04:15:39 -0500 Subject: [PATCH] Add files via upload --- iframe.html | 10 ++ index.html | 49 +++--- main.css | 32 +++- main.js | 469 ++++++++++++++++++++++++++++++++++++---------------- webrtc.js | 2 +- 5 files changed, 391 insertions(+), 171 deletions(-) diff --git a/iframe.html b/iframe.html index 1b434d2..aa47e2f 100644 --- a/iframe.html +++ b/iframe.html @@ -177,6 +177,16 @@ function loadIframe(){ // this is pretty important if you want to avoid camera button.onclick = function(){iframe.contentWindow.postMessage({"getLoudness":false}, '*');}; iframeContainer.appendChild(button); + var button = document.createElement("button"); + button.innerHTML = "Start Recording"; + button.onclick = function(){iframe.contentWindow.postMessage({"record":true}, '*');}; + iframeContainer.appendChild(button); + + var button = document.createElement("button"); + button.innerHTML = "Stop Recording"; + button.onclick = function(){iframe.contentWindow.postMessage({"record":false}, '*');}; + iframeContainer.appendChild(button); + var button = document.createElement("button"); button.innerHTML = "Say Hello"; button.onclick = function(){iframe.contentWindow.postMessage({"sendChat":"Hello!"}, '*');}; diff --git a/index.html b/index.html index 0361954..d18ae60 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@ } - + @@ -67,18 +67,21 @@ - + @@ -890,7 +893,7 @@ - Show Display Names + Show display names
- Force Mono Audio + Force mono audio
@@ -939,7 +942,7 @@ - + + @@ -1289,7 +1296,7 @@ --> - +