LINXD-2270-p2 #19
@ -20814,17 +20814,10 @@ const connectRecvTransport = async () => {
|
||||
stream.addTrack(audioTrack)
|
||||
} else {
|
||||
console.log('❗ Don\'t have AUDIO stream to consume');
|
||||
// const soundElement = document.getElementById('sound');
|
||||
// soundElement.remove();
|
||||
}
|
||||
|
||||
socket.emit('consumer-resume')
|
||||
|
||||
console.log('stream', stream);
|
||||
|
||||
// let removeAudio = document.getElementById('remoteAudio')
|
||||
// removeAudio.srcObject = stream
|
||||
|
||||
remoteVideo.srcObject = stream
|
||||
remoteVideo.setAttribute('autoplay', true)
|
||||
|
||||
|
@ -57,20 +57,13 @@
|
||||
</td>
|
||||
<td>
|
||||
<div id="sharedBtns">
|
||||
<!-- <video
|
||||
<video
|
||||
id="remoteVideo"
|
||||
class="video"
|
||||
autoplay
|
||||
muted
|
||||
playsinline
|
||||
></video> -->
|
||||
<audio
|
||||
id="remoteVideo"
|
||||
autoplay
|
||||
muted
|
||||
playsinline
|
||||
src="data:," alt
|
||||
></audio>
|
||||
></video>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@ -87,30 +80,6 @@
|
||||
</div>
|
||||
</td>
|
||||
</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>
|
||||
</table>
|
||||
<div id="closeCallBtn">
|
||||
|
@ -456,17 +456,10 @@ const connectRecvTransport = async () => {
|
||||
stream.addTrack(audioTrack)
|
||||
} else {
|
||||
console.log('❗ Don\'t have AUDIO stream to consume');
|
||||
// const soundElement = document.getElementById('sound');
|
||||
// soundElement.remove();
|
||||
}
|
||||
|
||||
socket.emit('consumer-resume')
|
||||
|
||||
console.log('stream', stream);
|
||||
|
||||
// let removeAudio = document.getElementById('remoteAudio')
|
||||
// removeAudio.srcObject = stream
|
||||
|
||||
remoteVideo.srcObject = stream
|
||||
remoteVideo.setAttribute('autoplay', true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user