1import{k as d,J as f,i as s,a as p,e as l,o as g}from"./Do1nZpFk.js";import"./BM5aYONo.js";const m={class:"position-relative"},b={__name:"test-stream-2",setup(_){const{$database:o}=d(),t=f(),a=s(null);s(null),s([]),s(null);const c=o.ref(o.db,`/conference/${t.query.room}`),i=o.ref(o.db,`/signals/${t.query.room}`),r=async()=>{console.log(1);const n=new SimplePeer({initiator:!1,stream:null});o.onChildAdded(i,e=>{console.log("listen");const u=e.val();n.signal(u.signalData)}),n.on("signal",e=>{console.log("signal"),o.push(c,{signalData:e})}),n.on("stream",e=>{a.value.srcObject=e,console.log(e),a.value.play()})};return(n,e)=>(g(),p("div",m,[l("div",null,[l("button",{class:"z-[100000000]",onClick:r},"init"),e[0]||(e[0]=l("h1",null,"Video Conference",-1)),l("video",{ref_key:"localVideoe",ref:a,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.