joy4/rtsp/stream.go
2016-07-01 21:45:15 +08:00

30 lines
392 B
Go

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