LINXD-2270-p2 #19
@ -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(() => {
|
||||
|
@ -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>
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user