[fix]忘记的文件,rtmp 支持Aggregate Message

pull/51/head
joestarzxh 4 years ago
parent 55a690a989
commit efdd0eaa6b

@ -85,7 +85,7 @@ func (packer *MessagePacker) writeConnect(writer io.Writer, appName, tcURL strin
var objs []ObjectPair
objs = append(objs, ObjectPair{Key: "app", Value: appName})
//objs = append(objs, ObjectPair{Key: "type", Value: "nonprivate"})
objs = append(objs, ObjectPair{Key: "type", Value: "nonprivate"})
var flashVer string
if isPush {
flashVer = fmt.Sprintf("FMLE/3.0 (compatible; %s)", base.LALRTMPPushSessionConnectVersion)

@ -0,0 +1,8 @@
package rtmp
type TagHeader struct {
Type uint8 // type
DataSize uint32 // body大小不包含 header 和 prev tag size 字段 3byte
Timestamp uint32 // 绝对时间戳,单位毫秒 4byte
StreamID uint32 // always 0 3byte
}
Loading…
Cancel
Save