mirror of
https://gitlab.com/comunic/ComunicRTCProxy
synced 2024-12-25 13:08:54 +00:00
Attempt to receive only
This commit is contained in:
parent
1b3279046e
commit
0d09b436d2
6
relay.go
6
relay.go
@ -168,13 +168,15 @@ func newCall(mainOffer receivedSignal, r activeRelay) {
|
||||
}
|
||||
|
||||
// Allow us to receive 1 audio & 1 video track
|
||||
if _, err = peerConnection.AddTransceiverFromKind(webrtc.RTPCodecTypeVideo); err != nil {
|
||||
if _, err = peerConnection.AddTransceiverFromKind(webrtc.RTPCodecTypeVideo,
|
||||
webrtc.RtpTransceiverInit{Direction: webrtc.RTPTransceiverDirectionRecvonly}); err != nil {
|
||||
log.Println("Error: could not prepare to receive video track!", err)
|
||||
askForClose(r)
|
||||
return
|
||||
}
|
||||
|
||||
if _, err = peerConnection.AddTransceiverFromKind(webrtc.RTPCodecTypeAudio); err != nil {
|
||||
if _, err = peerConnection.AddTransceiverFromKind(webrtc.RTPCodecTypeAudio,
|
||||
webrtc.RtpTransceiverInit{Direction: webrtc.RTPTransceiverDirectionRecvonly}); err != nil {
|
||||
log.Println("Error: could not prepare to receive audio track!", err)
|
||||
askForClose(r)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user