This commit is contained in:
Sergiu Toma 2022-12-19 12:22:21 +02:00
parent 825ded83c2
commit 4978e8d51f
3 changed files with 7 additions and 2 deletions

View File

@ -20775,10 +20775,11 @@ const connectRecvTransport = async () => {
if (videoParams) {
stream.addTrack(await getVideoTrask(videoParams))
} else {
console.log('❗ Don\'t have VIDEO stream to consume');
console.log('❗ Have VIDEO stream to consume');
}
if (audioParams) {
console.log('❗ Have AUDIO stream to consume');
let audioTrack = await getAudioTrask(audioParams)
stream.addTrack(audioTrack)
} else {

View File

@ -59,6 +59,9 @@
</div>
</td>
<td>
<div id="soundControl">
<img src="images/volume-mute.png" alt="sound-image" id="sound"/>
</div>
<div id="sharedBtns">
<button id="btnRecvSendTransport">Consume</button>
</div>

View File

@ -417,10 +417,11 @@ const connectRecvTransport = async () => {
if (videoParams) {
stream.addTrack(await getVideoTrask(videoParams))
} else {
console.log('❗ Don\'t have VIDEO stream to consume');
console.log('❗ Have VIDEO stream to consume');
}
if (audioParams) {
console.log('❗ Have AUDIO stream to consume');
let audioTrack = await getAudioTrask(audioParams)
stream.addTrack(audioTrack)
} else {