Create AMFObject struct

This commit is contained in:
saxon 2018-07-19 01:27:56 +09:30
parent f903ebd375
commit e51ec5b929
1 changed files with 8 additions and 3 deletions

View File

@ -166,7 +166,7 @@ type RTMP struct {
m_read RTMP_READ m_read RTMP_READ
m_write RTMPPacket m_write RTMPPacket
m_sb RTMPSockBuf m_sb RTMPSockBuf
Link C.RTMP_LNK Link RTMP_LNK
} }
type RTMPPacket struct { type RTMPPacket struct {
@ -223,7 +223,7 @@ type RTMPChunk struct {
c_headerSize int c_headerSize int
c_chunkSize int c_chunkSize int
c_chunk *byte c_chunk *byte
c_header [RTMP_MAX_HEADER_SIZE]byte c_header [C.RTMP_MAX_HEADER_SIZE]byte
} }
type RTMP_LNK struct { type RTMP_LNK struct {
@ -242,7 +242,7 @@ type RTMP_LNK struct {
token AVal token AVal
pubUser AVal pubUser AVal
pubPasswd AVal pubPasswd AVal
extras C.AMFObject extras AMFObject
edepth int edepth int
seekTime int seekTime int
stopTime int stopTime int
@ -257,6 +257,11 @@ type RTMP_LNK struct {
portp2 byte portp2 byte
} }
type AMFObject struct {
o_num int
o_props *C.AMFObjectProperty
}
var _ Session = (*session)(nil) var _ Session = (*session)(nil)
// NewSession returns a new session. // NewSession returns a new session.