LINXD-2270-p2 #19
@ -20814,17 +20814,10 @@ const connectRecvTransport = async () => {
|
|||||||
stream.addTrack(audioTrack)
|
stream.addTrack(audioTrack)
|
||||||
} else {
|
} else {
|
||||||
console.log('❗ Don\'t have AUDIO stream to consume');
|
console.log('❗ Don\'t have AUDIO stream to consume');
|
||||||
// const soundElement = document.getElementById('sound');
|
|
||||||
// soundElement.remove();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('consumer-resume')
|
socket.emit('consumer-resume')
|
||||||
|
|
||||||
console.log('stream', stream);
|
|
||||||
|
|
||||||
// let removeAudio = document.getElementById('remoteAudio')
|
|
||||||
// removeAudio.srcObject = stream
|
|
||||||
|
|
||||||
remoteVideo.srcObject = stream
|
remoteVideo.srcObject = stream
|
||||||
remoteVideo.setAttribute('autoplay', true)
|
remoteVideo.setAttribute('autoplay', true)
|
||||||
|
|
||||||
|
@ -57,20 +57,13 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div id="sharedBtns">
|
<div id="sharedBtns">
|
||||||
<!-- <video
|
<video
|
||||||
id="remoteVideo"
|
id="remoteVideo"
|
||||||
class="video"
|
class="video"
|
||||||
autoplay
|
autoplay
|
||||||
muted
|
muted
|
||||||
playsinline
|
playsinline
|
||||||
></video> -->
|
></video>
|
||||||
<audio
|
|
||||||
id="remoteVideo"
|
|
||||||
autoplay
|
|
||||||
muted
|
|
||||||
playsinline
|
|
||||||
src="data:," alt
|
|
||||||
></audio>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -87,30 +80,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- <tr>
|
|
||||||
<td colspan="2">
|
|
||||||
<div id="sharedBtns">
|
|
||||||
<button id="btnRtpCapabilities">2. Get Rtp Capabilities</button>
|
|
||||||
<br />
|
|
||||||
<button id="btnDevice">3. Create Device</button>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div id="sharedBtns">
|
|
||||||
<button id="btnCreateSendTransport">4. Create Send Transport</button>
|
|
||||||
<br />
|
|
||||||
<button id="btnConnectSendTransport">5. Connect Send Transport & Produce</button></td>
|
|
||||||
</div>
|
|
||||||
<td>
|
|
||||||
<div id="sharedBtns">
|
|
||||||
<button id="btnRecvSendTransport">6. Create Recv Transport</button>
|
|
||||||
<br />
|
|
||||||
<button id="btnConnectRecvTransport">7. Connect Recv Transport & Consume</button>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr> -->
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div id="closeCallBtn">
|
<div id="closeCallBtn">
|
||||||
|
@ -456,17 +456,10 @@ const connectRecvTransport = async () => {
|
|||||||
stream.addTrack(audioTrack)
|
stream.addTrack(audioTrack)
|
||||||
} else {
|
} else {
|
||||||
console.log('❗ Don\'t have AUDIO stream to consume');
|
console.log('❗ Don\'t have AUDIO stream to consume');
|
||||||
// const soundElement = document.getElementById('sound');
|
|
||||||
// soundElement.remove();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('consumer-resume')
|
socket.emit('consumer-resume')
|
||||||
|
|
||||||
console.log('stream', stream);
|
|
||||||
|
|
||||||
// let removeAudio = document.getElementById('remoteAudio')
|
|
||||||
// removeAudio.srcObject = stream
|
|
||||||
|
|
||||||
remoteVideo.srcObject = stream
|
remoteVideo.srcObject = stream
|
||||||
remoteVideo.setAttribute('autoplay', true)
|
remoteVideo.setAttribute('autoplay', true)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user