Create RTMPPacket go struct

This commit is contained in:
saxon 2018-07-19 00:43:59 +09:30
parent b6cd93fa4b
commit 8d0ee6598b
1 changed files with 13 additions and 0 deletions

View File

@ -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.