Skip to content

Commit a2e7ac3

Browse files
authored
Merge pull request #92 from anam-org/alpha
Alpha
2 parents e511665 + 0119254 commit a2e7ac3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modules/StreamingClient.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,11 @@ export class StreamingClient {
242242

243243
// add transceivers
244244
this.peerConnection.addTransceiver('video', { direction: 'recvonly' });
245-
this.peerConnection.addTransceiver('audio', { direction: 'sendrecv' });
245+
if (this.disableInputAudio) {
246+
this.peerConnection.addTransceiver('audio', { direction: 'recvonly' });
247+
} else {
248+
this.peerConnection.addTransceiver('audio', { direction: 'sendrecv' });
249+
}
246250
}
247251

248252
private async onSignalMessage(signalMessage: SignalMessage) {

0 commit comments

Comments
 (0)