vdk/format/rtsp/stream.go

30 lines
416 B
Go
Raw Normal View History

2019-12-01 04:53:21 +08:00
package rtsp
import (
"time"
"git.r-2.top/kunmeng/vdk/av"
"git.r-2.top/kunmeng/vdk/format/rtsp/sdp"
2019-12-01 04:53:21 +08:00
)
type Stream struct {
av.CodecData
Sdp sdp.Media
client *Client
// h264
fuStarted bool
fuBuffer []byte
sps []byte
pps []byte
spsChanged bool
ppsChanged bool
gotpkt bool
pkt av.Packet
timestamp uint32
firsttimestamp uint32
lasttime time.Duration
}