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