娃娃机推流修改
This commit is contained in:
parent
bf1efc0139
commit
8952d98f7d
|
@ -129,7 +129,8 @@ func (this *SceneEx) OnPlayerEnter(p *base.Player, reason int) {
|
|||
return
|
||||
}
|
||||
|
||||
if this.GetPlayerNum() >= 1 && this.GetPlayerNum() <= 3 {
|
||||
if this.GetPlayerNum() >= 1 {
|
||||
logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerEnter, GetPlayerNum = ", this.GetPlayerNum())
|
||||
// 发送http Get请求 恢复直播间流
|
||||
//operateTask(this, 2, rule.Zego_ResumeRTCStream, p.Platform)
|
||||
}
|
||||
|
@ -147,6 +148,7 @@ func (this *SceneEx) OnPlayerLeave(p *base.Player, reason int) {
|
|||
}
|
||||
|
||||
if len(this.players) <= 0 {
|
||||
logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerLeave, cur player num = ", len(this.players))
|
||||
// 发送http Get请求 关闭直播间流
|
||||
//operateTask(this, 2, rule.Zego_ForbidRTCStream, p.Platform)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue