checkpoint
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user