This commit is contained in:
Sagi Dayan 2020-04-12 19:53:24 -04:00
parent 822825731d
commit a3a7b1115d
5 changed files with 8 additions and 18 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

View file

@ -4,15 +4,8 @@
<Loading />
</div>
<div v-else class="is-flex">
<video
:srcObject="localStream"
autoplay="true"
controls="false"
playsinline="true"
muted="true"
style="max-width:40%"
/>
<video :srcObject="remoteStream" autoplay="true" controls="false" style="max-width:40%" />
<video :srcObject="localStream" autoplay="autoplay" muted="true" style="max-width:40%" />
<video :srcObject="remoteStream" autoplay="autoplay" style="max-width:40%" />
</div>
</div>
</template>
@ -44,10 +37,7 @@ export default {
this.$router.push({ path: `/` });
return false;
}
this.localStream = this.callManager.getUserMedia({
video: true,
audio: true
});
this.localStream = await this.callManager.getUserMedia();
this.remoteStream = this.callManager.getRemoteStream();
this.notify({ message: "Connected!", level: "success" });
} catch (e) {