Oh-video with go2rtc and two way audio

Hey everyone, I’m having difficulties with the oh-video widget - or maybe the go2rtc link, I’m not sure - in the oh-webframe, the same url works fine (but lacks two way audio of course). When I add the url:
https://go2rtcmydomain.com/webrtc.html?src=camera&media=video+audio+microphone

Which works correctly in the browser, two way audio included, I get a black screen and no stream.
The media controls are all there but no stream.

Any hints?

if the same webrtc.html url works in a normal browser tab but oh-video / webframe is black, it is usually the iframe/permissions thing not go2rtc itself.

microphone + webrtc inside a widget is picky:

  • browser will block mic in a cross-origin iframe unless the iframe allow list has microphone; camera; autoplay
  • mixed content kills it if main ui is https and the go2rtc link is http (or bad cert)
  • oh-video sometimes wants a raw stream url, not the full webrtc.html page. try the go2rtc stream endpoint / the embed the widget docs expect, and keep webrtc.html for a webframe only

quick checks:

  1. open browser devtools on the ui page, look for iframe permission / autoplay errors
  2. confirm the widget url is exactly the same origin scheme as the ui (https both sides)
  3. for two way audio you basically need webframe + allow mic, plain oh-video often wont pass microphone through

if webframe still blacks out, paste the exact widget yaml and whether ui and go2rtc are same host or reverse proxied.