1import{k as p,J as m,i as t,a as v,e as l,o as g}from"./Do1nZpFk.js";import"./BM5aYONo.js";const _={class:"position-relative"},b={__name:"test-stream",setup(y){const{$database:o}=p(),s=m(),i=t(null),r=t(null),n=t(null),c=o.ref(o.db,`/conference/${s.query.room}`),u=o.ref(o.db,`/signals/${s.query.room}`),d=async()=>{n.value=await navigator.mediaDevices.getUserMedia({video:!0,audio:!0}),i.value.srcObject=n.value;const a=new SimplePeer({initiator:!0,stream:n.value});o.onChildAdded(c,e=>{console.log("listen");const f=e.val();a.signal(f.signalData)}),a.on("signal",e=>{console.log("signal"),o.push(u,{signalData:e})})};return(a,e)=>(g(),v("div",_,[l("div",null,[l("button",{onClick:d},"init"),e[0]||(e[0]=l("h1",null,"Video Conference",-1)),l("video",{ref_key:"localVideo",ref:i,autoplay:""},null,512),e[1]||(e[1]=l("hr",null,null,-1)),l("video",{ref_key:"localVideo2",ref:r,autoplay:""},null,512)])]))}};export{b as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.