From 8d0ee6598b9f5321d83b2d46011f3975e6da8bdb Mon Sep 17 00:00:00 2001 From: saxon Date: Thu, 19 Jul 2018 00:43:59 +0930 Subject: [PATCH] Create RTMPPacket go struct --- rtmp/rtmp.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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.