Files
livekit-3d/pkg/rtc/forwarder.go
T
2020-10-23 00:12:33 -07:00

23 lines
362 B
Go

package rtc
import (
"github.com/pion/rtp"
)
// a forwarder publishes data to a target track or datachannel
// manages the RTCP loop with the target peer
type Forwarder interface {
ChannelType() ChannelType
WriteRTP(*rtp.Packet)
Start() error
Stop() error
}
type ChannelType int
const (
ChannelAudio ChannelType = iota + 1
ChannelVideo
ChannelData
)