mirror of
https://github.com/livekit/livekit.git
synced 2026-04-25 11:12:07 +00:00
ignore placeholder data channel
This commit is contained in:
@@ -19,7 +19,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
sdBatchSize = 20
|
||||
placeholderDataChannel = "_private"
|
||||
sdBatchSize = 20
|
||||
)
|
||||
|
||||
type Participant struct {
|
||||
@@ -366,7 +367,10 @@ func (p *Participant) onMediaTrack(track *webrtc.TrackRemote, rtpReceiver *webrt
|
||||
}
|
||||
|
||||
func (p *Participant) onDataChannel(dc *webrtc.DataChannel) {
|
||||
logger.GetLogger().Debugw("dataChannel added", "participantId", p.ID(), "id", dc.ID())
|
||||
if dc.Label() == placeholderDataChannel {
|
||||
return
|
||||
}
|
||||
logger.GetLogger().Debugw("dataChannel added", "participantId", p.ID(), "label", dc.Label())
|
||||
|
||||
dt := NewDataTrack(p.id, dc)
|
||||
p.lock.Lock()
|
||||
|
||||
Reference in New Issue
Block a user