Skip to content

Commit f1bf5e2

Browse files
committed
both videos
1 parent 229b63a commit f1bf5e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

resources/js/Pages/Welcome.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const grantPermissions = async (evt, constraints = {video: true, video: true}) =
4242
for (const track of stream.value.getTracks()) {
4343
pc.addTrack(track, stream.value);
4444
}
45+
const video = document.getElementById('callee_video');
46+
video.srcObject = stream.value
47+
video.play()
4548
hasStream.value = true
4649
/* use the stream */
4750
} catch (err) {
@@ -229,6 +232,8 @@ onMounted(() => {
229232
Grant Permissions
230233
</PrimaryButton>
231234
<video class="mt-2" id="caller_video"></video>
235+
236+
<video class="mt-2" id="callee_video" muted></video>
232237
</p>
233238

234239

0 commit comments

Comments
 (0)