mirror of https://bitbucket.org/ausocean/av.git
Create RTMP_LNK go struct
This commit is contained in:
parent
5c8274786c
commit
f903ebd375
42
rtmp/rtmp.go
42
rtmp/rtmp.go
|
@ -85,6 +85,13 @@ const (
|
|||
RTMP_READ_ERROR = -2
|
||||
RTMP_READ_EOF = -1
|
||||
RTMP_READ_IGNORE = 0
|
||||
RTMP_LF_AUTH = 0x0001 /* using auth param */
|
||||
RTMP_LF_LIVE = 0x0002 /* stream is live */
|
||||
RTMP_LF_SWFV = 0x0004 /* do SWF verification */
|
||||
RTMP_LF_PLST = 0x0008 /* send playlist before play */
|
||||
RTMP_LF_BUFX = 0x0010 /* toggle stream on BufferEmpty msg */
|
||||
RTMP_LF_FTCU = 0x0020 /* free tcUrl on close */
|
||||
RTMP_LF_FAPU = 0x0040 /* free app on close */
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -158,7 +165,7 @@ type RTMP struct {
|
|||
m_clientID AVal
|
||||
m_read RTMP_READ
|
||||
m_write RTMPPacket
|
||||
m_sb C.RTMPSockBuf
|
||||
m_sb RTMPSockBuf
|
||||
Link C.RTMP_LNK
|
||||
}
|
||||
|
||||
|
@ -171,7 +178,7 @@ type RTMPPacket struct {
|
|||
m_nInfoField2 int32
|
||||
m_nBodySize uint32
|
||||
m_nBytesRead uint32
|
||||
m_chunk *C.RTMPChunk
|
||||
m_chunk *RTMPChunk
|
||||
m_body *byte
|
||||
}
|
||||
|
||||
|
@ -219,6 +226,37 @@ type RTMPChunk struct {
|
|||
c_header [RTMP_MAX_HEADER_SIZE]byte
|
||||
}
|
||||
|
||||
type RTMP_LNK struct {
|
||||
hostname AVal
|
||||
sockshost AVal
|
||||
playpath0 AVal
|
||||
playpath AVal
|
||||
tcUrl AVal
|
||||
swfUrl AVal
|
||||
pageUrl AVal
|
||||
app AVal
|
||||
auth AVal
|
||||
flashVer AVal
|
||||
subscribepath AVal
|
||||
usherToken AVal
|
||||
token AVal
|
||||
pubUser AVal
|
||||
pubPasswd AVal
|
||||
extras C.AMFObject
|
||||
edepth int
|
||||
seekTime int
|
||||
stopTime int
|
||||
lFlags int
|
||||
swfAge int
|
||||
protocol int
|
||||
timeout int
|
||||
pFlags int
|
||||
socksport1 byte
|
||||
socksport2 byte
|
||||
portp1 byte
|
||||
portp2 byte
|
||||
}
|
||||
|
||||
var _ Session = (*session)(nil)
|
||||
|
||||
// NewSession returns a new session.
|
||||
|
|
Loading…
Reference in New Issue