mirror of
https://github.com/pion/webrtc.git
synced 2025-10-28 09:41:35 +08:00
23 lines
497 B
Go
23 lines
497 B
Go
package webrtc
|
|
|
|
import (
|
|
"github.com/pions/webrtc/pkg/media"
|
|
"github.com/pions/webrtc/pkg/rtcp"
|
|
"github.com/pions/webrtc/pkg/rtp"
|
|
)
|
|
|
|
// RTCTrack represents a track that is communicated
|
|
type RTCTrack struct {
|
|
ID string
|
|
PayloadType uint8
|
|
Kind RTCRtpCodecType
|
|
Label string
|
|
Ssrc uint32
|
|
Codec *RTCRtpCodec
|
|
Packets <-chan *rtp.Packet
|
|
RTCPPackets <-chan rtcp.Packet
|
|
Samples chan<- media.RTCSample
|
|
RawRTP chan<- *rtp.Packet
|
|
isRawRTP bool
|
|
}
|