From 58f646cb55a0ffe035e96664b753bc7daf52d8fb Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Fri, 5 Aug 2022 18:48:02 -0400 Subject: [PATCH] fix for &sendframes with iframe.html --- iframe.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/iframe.html b/iframe.html index 10ecde1..b9b6ceb 100644 --- a/iframe.html +++ b/iframe.html @@ -83,9 +83,10 @@ media.streams[e.data.streamID] = document.createElement("video"); media.streams[e.data.streamID].id = "video_"+e.data.streamID; media.streams[e.data.streamID].autoplay = true; - // media.streams[e.data.streamID].controls = true; + media.streams[e.data.streamID].muted = true; + media.streams[e.data.streamID].controls = true; media.streams[e.data.streamID].srcObject = media.tracks[e.data.trackID].stream; - Container.appendChild(media.streams[e.data.streamID]); + mainLog.appendChild(media.streams[e.data.streamID]); } else { if (e.data.kind=="video"){ media.streams[e.data.streamID].srcObject.getVideoTracks().forEach(trk=>{ @@ -216,10 +217,10 @@ { guestId: 'companion', headers: '

HTTP/WSS

These commands re-use the Companion.Ninja HTTP/WSS API, except you can send them via this Iframe interface.

', - info: ` -

- More details of the below IFRAME API details are here: https://github.com/steveseguin/Companion-Ninja#api-commands -

` + info: '\ +

\ + More details of the below IFRAME API details are here: https://github.com/steveseguin/Companion-Ninja#api-commands\ +

' } ) @@ -241,7 +242,7 @@ function getGuestAPIGenerator() { var targetGuest = newElement('div', { classList: 'target-guest', - innerHTML: `

HTTP/WSS Director

Directors can target commands to individual guests

Target guest by:

` + innerHTML: '

HTTP/WSS Director

Directors can target commands to individual guests

Target guest by:

' }); var targetGuestBySlot = newElement("input", { type: "radio",