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