You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
426 B
Go
30 lines
426 B
Go
package rtsp
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gitlab.com/ics_cinnamon/joy4/av"
|
|
"gitlab.com/ics_cinnamon/joy4/format/rtsp/sdp"
|
|
)
|
|
|
|
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
|
|
}
|