LINXD-2270-p2 #19
@ -20775,10 +20775,11 @@ const connectRecvTransport = async () => {
|
|||||||
if (videoParams) {
|
if (videoParams) {
|
||||||
stream.addTrack(await getVideoTrask(videoParams))
|
stream.addTrack(await getVideoTrask(videoParams))
|
||||||
} else {
|
} else {
|
||||||
console.log('❗ Don\'t have VIDEO stream to consume');
|
console.log('❗ Have VIDEO stream to consume');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (audioParams) {
|
if (audioParams) {
|
||||||
|
console.log('❗ Have AUDIO stream to consume');
|
||||||
let audioTrack = await getAudioTrask(audioParams)
|
let audioTrack = await getAudioTrask(audioParams)
|
||||||
stream.addTrack(audioTrack)
|
stream.addTrack(audioTrack)
|
||||||
} else {
|
} else {
|
||||||
|
@ -59,6 +59,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
<div id="soundControl">
|
||||||
|
<img src="images/volume-mute.png" alt="sound-image" id="sound"/>
|
||||||
|
</div>
|
||||||
<div id="sharedBtns">
|
<div id="sharedBtns">
|
||||||
<button id="btnRecvSendTransport">Consume</button>
|
<button id="btnRecvSendTransport">Consume</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -417,10 +417,11 @@ const connectRecvTransport = async () => {
|
|||||||
if (videoParams) {
|
if (videoParams) {
|
||||||
stream.addTrack(await getVideoTrask(videoParams))
|
stream.addTrack(await getVideoTrask(videoParams))
|
||||||
} else {
|
} else {
|
||||||
console.log('❗ Don\'t have VIDEO stream to consume');
|
console.log('❗ Have VIDEO stream to consume');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (audioParams) {
|
if (audioParams) {
|
||||||
|
console.log('❗ Have AUDIO stream to consume');
|
||||||
let audioTrack = await getAudioTrask(audioParams)
|
let audioTrack = await getAudioTrask(audioParams)
|
||||||
stream.addTrack(audioTrack)
|
stream.addTrack(audioTrack)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user