mirror of https://bitbucket.org/ausocean/av.git
Create AMFObject struct
This commit is contained in:
parent
f903ebd375
commit
e51ec5b929
11
rtmp/rtmp.go
11
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.
|
||||
|
|
Loading…
Reference in New Issue