diff --git a/codecs.html b/codecs.html index 62caa7c..d1407bd 100644 --- a/codecs.html +++ b/codecs.html @@ -4,34 +4,72 @@ + + \ No newline at end of file diff --git a/comms.html b/comms.html index d88edfc..beebb94 100644 --- a/comms.html +++ b/comms.html @@ -3,7 +3,7 @@ Comms app - + @@ -1134,6 +1134,8 @@ } + + function randomRoomName(){ document.getElementById("roomname").value = generateString(8); } @@ -1828,6 +1830,14 @@ iframe.contentWindow.postMessage({ groups: savedSession.activeGroups , groupView: savedSession.activeViewGroups }, "*"); } + var params = window.location.search || ""; + if (params.startsWith("?")){ + params = params.slice(1); + iframesrc = iframesrc + "&" + params + } else { + iframesrc = iframesrc + params + } + iframe.src = iframesrc; iframeContainer.appendChild(iframe); document.getElementById("container").appendChild(iframeContainer); diff --git a/examples/iframe.inbound-stats.html b/examples/iframe.inbound-stats.html new file mode 100644 index 0000000..6454aef --- /dev/null +++ b/examples/iframe.inbound-stats.html @@ -0,0 +1,129 @@ + +Basic IFRAME Inbound Stats sample + + + + + +
+
+ Create a simple vdo.ninja/?push=XXX link in a different tab, enter the stream ID below to view it and view the IFRAME API stats. Stats will be printed to screen and console.
+ + +
+
+
+ + + \ No newline at end of file diff --git a/examples/sensoroverlay.html b/examples/sensoroverlay.html index 9531806..fa5ca66 100644 --- a/examples/sensoroverlay.html +++ b/examples/sensoroverlay.html @@ -1,5 +1,7 @@ -Video with sensor overlayed data + +Video with sensor overlayed data + - - -

WebRTC File Sharing

- -
- - - -
- - - - - - \ No newline at end of file diff --git a/iframe.html b/iframe.html index afa7545..d51f6ff 100644 --- a/iframe.html +++ b/iframe.html @@ -140,6 +140,7 @@ if ("action" in e.data && e.data.action !== "loudness") { logOutput("child-page-action: "+e.data.action+"
") + console.log(e.data); } if ("streamIDs" in e.data){ diff --git a/index.html b/index.html index c1a6e49..d1b80c3 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@ - + @@ -90,9 +90,9 @@ - + - + + @@ -2285,19 +2301,19 @@ - - - - @@ -2417,6 +2433,11 @@ + + +
`; + } else if (recording){ + modalTemplate = + ` +
`; + } else if (hotkey){ + modalTemplate = + ` +
`; } else { modalTemplate = `