AdapterJS
AdapterJS copied to clipboard
attachMedia blows up if video tag doesnt have a parent
var vid = document.createElement('video');
adapterjs.attachMediaStream(vid, stream);
Trying to not show the stream until the video is playing, so I render a dummy video tag in-memory and wait until it is flowing before rendering a real one on the page. This isn't possible with any streams using AdapterJS since it makes a ton of assumptions that the video element is in the DOM and checks for the parent (not sure why this is necessary)
Hi, Our doc informs you that the element needs to be in the DOM before you call attachMediaStream: https://temasys.atlassian.net/wiki/display/TWPP/How+to+integrate+the+Temasys+WebRTC+Plugin+into+your+website
However I think you make a faire point. We could return the
Thanks for the feedback, I'll keep you posted ;)