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_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.
|
||||||
|
|
Loading…
Reference in New Issue