diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 7881718f..ffa781ae 100644 --- a/rtmp/rtmp.go +++ b/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.