checkpoint

This commit is contained in:
David Zhao
2020-10-23 00:12:33 -07:00
parent 40c7d902d8
commit 71d3a470f5
11 changed files with 532 additions and 28 deletions
+22
View File
@@ -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
)