mirror of https://bitbucket.org/ausocean/av.git
Create RTMPPacket go struct
This commit is contained in:
parent
b6cd93fa4b
commit
8d0ee6598b
13
rtmp/rtmp.go
13
rtmp/rtmp.go
|
@ -162,6 +162,19 @@ type RTMP struct {
|
|||
Link C.RTMP_LNK
|
||||
}
|
||||
|
||||
type RTMPPacket struct {
|
||||
m_headerType uint8
|
||||
m_packetType uint8
|
||||
m_hasAbsTimestamp uint8
|
||||
m_nChannel int
|
||||
m_nTimeStamp uint32
|
||||
m_nInfoField2 int32
|
||||
m_nBodySize uint32
|
||||
m_nBytesRead uint32
|
||||
m_chunk *RTMPChunk
|
||||
m_body *byte
|
||||
}
|
||||
|
||||
var _ Session = (*session)(nil)
|
||||
|
||||
// NewSession returns a new session.
|
||||
|
|
Loading…
Reference in New Issue