1、增加SErepublish事件表示再次发布成功事件,使得SEPublish事件表示第一次发布成功。

2、修复push时ReConnectCount没有计数增加。
3、使用github.com/quic-go/quic-go v0.32.0版本。
4、修复订阅模式>1时没有从IDR帧开始的问题。
This commit is contained in:
dexter
2023-02-03 21:28:30 +08:00
parent 3d060e07cf
commit 4d9c1350d1
9 changed files with 77 additions and 52 deletions

View File

@@ -367,6 +367,8 @@ type Pusher struct {
}
// 是否需要重连
func (pub *Pusher) Reconnect() bool {
return pub.Config.RePush == -1 || pub.ReConnectCount <= pub.Config.RePush
func (pub *Pusher) Reconnect() (result bool) {
result = pub.Config.RePush == -1 || pub.ReConnectCount <= pub.Config.RePush
pub.ReConnectCount++
return
}