File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,14 @@ 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+ console . log (
247+ 'StreamingClient - initPeerConnection: adding recvonly audio transceiver' ,
248+ ) ;
249+ this . peerConnection . addTransceiver ( 'audio' , { direction : 'recvonly' } ) ;
250+ } else {
251+ this . peerConnection . addTransceiver ( 'audio' , { direction : 'sendrecv' } ) ;
252+ }
246253 }
247254
248255 private async onSignalMessage ( signalMessage : SignalMessage ) {
@@ -492,6 +499,10 @@ export class StreamingClient {
492499 try {
493500 const offer : RTCSessionDescriptionInit =
494501 await this . peerConnection . createOffer ( ) ;
502+ console . log (
503+ 'StreamingClient - initPeerConnectionAndSendOffer: offer' ,
504+ offer ,
505+ ) ;
495506 await this . peerConnection . setLocalDescription ( offer ) ;
496507 } catch ( error ) {
497508 console . error (
You can’t perform that action at this time.
0 commit comments