joy4/rtsp/stream.go
nareix 452846833c Add 'rtsp/' from commit 'df0f52cf38a45d842291bb72e1adc24de397d1dd'
git-subtree-dir: rtsp
git-subtree-mainline: 6b682ae3918d3f153df86e11eb07d386bfcd26b8
git-subtree-split: df0f52cf38a45d842291bb72e1adc24de397d1dd
2016-07-01 21:35:08 +08:00

30 lines
382 B
Go

package rtsp
import (
"github.com/nareix/av"
"github.com/nareix/rtsp/sdp"
"time"
)
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
}