From e51ec5b929d241c142fc67dc41a3b919e24ba8ce Mon Sep 17 00:00:00 2001 From: saxon Date: Thu, 19 Jul 2018 01:27:56 +0930 Subject: [PATCH] Create AMFObject struct --- rtmp/rtmp.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index e1f26b44..86bd735a 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -166,7 +166,7 @@ type RTMP struct { m_read RTMP_READ m_write RTMPPacket m_sb RTMPSockBuf - Link C.RTMP_LNK + Link RTMP_LNK } type RTMPPacket struct { @@ -223,7 +223,7 @@ type RTMPChunk struct { c_headerSize int c_chunkSize int c_chunk *byte - c_header [RTMP_MAX_HEADER_SIZE]byte + c_header [C.RTMP_MAX_HEADER_SIZE]byte } type RTMP_LNK struct { @@ -242,7 +242,7 @@ type RTMP_LNK struct { token AVal pubUser AVal pubPasswd AVal - extras C.AMFObject + extras AMFObject edepth int seekTime int stopTime int @@ -257,6 +257,11 @@ type RTMP_LNK struct { portp2 byte } +type AMFObject struct { + o_num int + o_props *C.AMFObjectProperty +} + var _ Session = (*session)(nil) // NewSession returns a new session.