diff --git a/iframe.html b/iframe.html index e959f2a..ae254c1 100644 --- a/iframe.html +++ b/iframe.html @@ -233,6 +233,11 @@ button.onclick = function(){iframe.contentWindow.postMessage({"getStreamIDs":true}, '*');}; iframeContainer.appendChild(button); + var button = document.createElement("button"); + button.innerHTML = "get media device list"; + button.onclick = function(){iframe.contentWindow.postMessage({"getDeviceList":true}, '*');}; + iframeContainer.appendChild(button); + var button = document.createElement("button"); button.innerHTML = "Start AutoMixer"; button.onclick = function(){iframe.contentWindow.postMessage({"automixer":true}, '*');}; @@ -347,6 +352,17 @@ iframeContainer.appendChild(outputWindow); } + if ("deviceList" in e.data){ + var outputWindow = document.createElement("div"); + outputWindow.innerHTML = "child-page-action: deviceList
"; + for (var i = 0;i"; + } + outputWindow.style.border="1px dotted black"; + iframeContainer.appendChild(outputWindow); + } + + if ("loudness" in e.data){ console.log(e.data); if (document.getElementById("loudness")){ diff --git a/index.html b/index.html index 2b2df33..076760e 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ transition: opacity .1s linear; } - + @@ -66,8 +66,8 @@ - - + +
@@ -1219,6 +1227,15 @@ add to scene 1 + + + + 100 + + @@ -1276,10 +1293,7 @@ - + -