[patch] prev pr patch

pull/166/head
q191201771 3 years ago
parent 120afe8592
commit f551dbfa65

@ -15,7 +15,7 @@ type (
const ( const (
AvPacketStreamAudioFormatUnknown AvPacketStreamAudioFormat = 0 AvPacketStreamAudioFormatUnknown AvPacketStreamAudioFormat = 0
AvPacketStreamAudioFormatRawAac AvPacketStreamAudioFormat = 1 AvPacketStreamAudioFormatRawAac AvPacketStreamAudioFormat = 1
AvPacketStreamVideoFormatUnknown AvPacketStreamVideoFormat = 0 AvPacketStreamVideoFormatUnknown AvPacketStreamVideoFormat = 0
AvPacketStreamVideoFormatAvcc AvPacketStreamVideoFormat = 1 AvPacketStreamVideoFormatAvcc AvPacketStreamVideoFormat = 1

@ -22,8 +22,8 @@ type ILalServer interface {
// AddCustomizePubSession 定制化增强功能。业务方可以将自己的流输入到 ILalServer 中 // AddCustomizePubSession 定制化增强功能。业务方可以将自己的流输入到 ILalServer 中
// //
// @example 示例见 lal/app/demo/customize_lalserver // @example 示例见 lal/app/demo/customize_lalserver
// //
// @doc 文档见 <lalserver二次开发 - pub接入自定义流> https://pengrl.com/lal/#/customize_pub // @doc 文档见 <lalserver二次开发 - pub接入自定义流> https://pengrl.com/lal/#/customize_pub
// //
AddCustomizePubSession(streamName string) (ICustomizePubSessionContext, error) AddCustomizePubSession(streamName string) (ICustomizePubSessionContext, error)

@ -26,7 +26,7 @@ type PullSessionOption struct {
ReadAvTimeoutMs int ReadAvTimeoutMs int
ReadBufSize int // io层读取音视频数据时的缓冲大小如果为0则没有缓冲 ReadBufSize int // io层读取音视频数据时的缓冲大小如果为0则没有缓冲
HandshakeComplexFlag bool HandshakeComplexFlag bool
PeerWinAckSize int PeerWinAckSize int
} }
var defaultPullSessionOption = PullSessionOption{ var defaultPullSessionOption = PullSessionOption{
@ -34,7 +34,7 @@ var defaultPullSessionOption = PullSessionOption{
ReadAvTimeoutMs: 0, ReadAvTimeoutMs: 0,
ReadBufSize: 0, ReadBufSize: 0,
HandshakeComplexFlag: false, HandshakeComplexFlag: false,
PeerWinAckSize:0, PeerWinAckSize: 0,
} }
type ModPullSessionOption func(option *PullSessionOption) type ModPullSessionOption func(option *PullSessionOption)

@ -30,10 +30,10 @@ type ClientSession struct {
t ClientSessionType t ClientSessionType
option ClientSessionOption option ClientSessionOption
packer *MessagePacker packer *MessagePacker
chunkComposer *ChunkComposer chunkComposer *ChunkComposer
urlCtx base.UrlContext urlCtx base.UrlContext
hc IHandshakeClient hc IHandshakeClient
conn connection.Connection conn connection.Connection
prevConnStat connection.Stat prevConnStat connection.Stat
@ -84,7 +84,7 @@ var defaultClientSessOption = ClientSessionOption{
WriteBufSize: 0, WriteBufSize: 0,
WriteChanSize: 0, WriteChanSize: 0,
HandshakeComplexFlag: false, HandshakeComplexFlag: false,
PeerWinAckSize:0, PeerWinAckSize: 0,
} }
type ModClientSessionOption func(option *ClientSessionOption) type ModClientSessionOption func(option *ClientSessionOption)
@ -554,7 +554,7 @@ func (s *ClientSession) doProtocolControlMessage(stream *Stream) error {
} }
func (s *ClientSession) doRespAcknowledgement(stream *Stream) error { func (s *ClientSession) doRespAcknowledgement(stream *Stream) error {
//参考srs代码 // https://github.com/q191201771/lal/pull/154
if s.option.PeerWinAckSize <= 0 { if s.option.PeerWinAckSize <= 0 {
return nil return nil
} }

Loading…
Cancel
Save