use SendRecv transceiver instead of Sendonly
This commit is contained in:
@@ -132,7 +132,7 @@ func (t *MediaTrack) AddSubscriber(participant types.Participant) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
transceiver, err := participant.PeerConnection().AddTransceiverFromTrack(outTrack, webrtc.RTPTransceiverInit{
|
transceiver, err := participant.PeerConnection().AddTransceiverFromTrack(outTrack, webrtc.RTPTransceiverInit{
|
||||||
Direction: webrtc.RTPTransceiverDirectionSendonly,
|
Direction: webrtc.RTPTransceiverDirectionSendrecv,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -354,6 +354,7 @@ func (t *MediaTrack) handleRTCP(dt *sfu.DownTrack, identity string, rtcpBuf []by
|
|||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
break
|
break
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
|
logger.Warnw("error getting buffered packet", "error", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// what about handling write errors such as no packet found
|
// what about handling write errors such as no packet found
|
||||||
|
|||||||
Reference in New Issue
Block a user