Forward data between WHIP client and non-WHIP client (#3627)

* Forward data between WHIP client and non-WHIP client

* fix test
This commit is contained in:
Raja Subramanian
2025-04-25 23:20:08 +05:30
committed by GitHub
parent 6739e7bcc8
commit e14905581c
8 changed files with 77 additions and 25 deletions
+2 -2
View File
@@ -3121,12 +3121,12 @@ func (p *ParticipantImpl) SendDataMessage(kind livekit.DataPacket_Kind, data []b
return p.TransportManager.SendDataMessage(kind, data)
}
func (p *ParticipantImpl) SendDataMessageUnlabeled(data []byte) error {
func (p *ParticipantImpl) SendDataMessageUnlabeled(data []byte, useRaw bool) error {
if p.State() != livekit.ParticipantInfo_ACTIVE {
return ErrDataChannelUnavailable
}
return p.TransportManager.SendDataMessageUnlabeled(data)
return p.TransportManager.SendDataMessageUnlabeled(data, useRaw)
}
func (p *ParticipantImpl) onDataSendError(err error) {