forked from sagi/seepur
wip
This commit is contained in:
parent
a89910753e
commit
591dd39fdf
5 changed files with 12 additions and 15 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4,8 +4,13 @@
|
|||
<Loading />
|
||||
</div>
|
||||
<div v-else class="is-flex">
|
||||
<video id="local_stream" autoplay="autoplay" muted="true" style="max-width:40%" />
|
||||
<video id="remote_stream" autoplay="autoplay" style="max-width:40%" />
|
||||
<video
|
||||
:src-object.prop.camel="localStream"
|
||||
autoplay="autoplay"
|
||||
muted="true"
|
||||
style="max-width:40%"
|
||||
/>
|
||||
<video :src-object.prop.camel="remoteStream" autoplay="autoplay" style="max-width:40%" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -39,14 +44,6 @@ export default {
|
|||
}
|
||||
this.localStream = await this.callManager.getUserMedia();
|
||||
this.remoteStream = this.callManager.getRemoteStream();
|
||||
const localVid: HTMLVideoElement = document.getElementById(
|
||||
"local_stream"
|
||||
) as HTMLVideoElement;
|
||||
const remoteVid: HTMLVideoElement = document.getElementById(
|
||||
"remote_stream"
|
||||
) as HTMLVideoElement;
|
||||
localVid.srcObject = this.localStream;
|
||||
remoteVid.srcObject = this.remoteStream;
|
||||
this.notify({ message: "Connected!", level: "success" });
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
|
Loading…
Reference in a new issue