This commit is contained in:
Sergiu Toma 2022-12-19 13:57:17 +02:00
parent 88da70731f
commit b4fccc4d4c
3 changed files with 17 additions and 7 deletions

View File

@ -20822,9 +20822,11 @@ const connectRecvTransport = async () => {
console.log('stream', stream);
// let removeAudio = document.getElementById('remoteAudio')
// removeAudio.srcObject = stream
remoteVideo.srcObject = stream
remoteVideo.setAttribute('autoplay', true)
remoteVideo.setAttribute('muted', false)
remoteVideo.play()
.then(() => {

View File

@ -48,23 +48,29 @@
<div id="sharedBtns">
<video
id="localVideo"
autoplay
class="video"
autoplay
muted
controls
playsinline
></video>
</div>
</td>
<td>
<div id="sharedBtns">
<video
<!-- <video
id="remoteVideo"
autoplay
class="video"
autoplay
muted
playsinline
></video>
></video> -->
<audio
id="remoteVideo"
autoplay
muted
playsinline
src="data:," alt
></audio>
</div>
</td>
</tr>

View File

@ -464,9 +464,11 @@ const connectRecvTransport = async () => {
console.log('stream', stream);
// let removeAudio = document.getElementById('remoteAudio')
// removeAudio.srcObject = stream
remoteVideo.srcObject = stream
remoteVideo.setAttribute('autoplay', true)
remoteVideo.setAttribute('muted', false)
remoteVideo.play()
.then(() => {