Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
414 B

package core
import (
"time"
"github.com/pion/rtp"
)
// data is the data unit routed across the server.
// it must contain one or more of the following:
// - a single RTP packet
// - a group of H264 NALUs (grouped by timestamp)
// - a single AAC AU
type data struct {
trackID int
rtpPacket *rtp.Packet
// timing
ptsEqualsDTS bool
pts time.Duration
h264NALUs [][]byte
mpeg4AudioAU []byte
}