升级playblock

This commit is contained in:
dexter
2022-03-27 11:35:27 +08:00
parent 742b8fb01d
commit 52b0c1b3a0

View File

@@ -73,7 +73,7 @@ func (suber *WebRTCSubscriber) OnEvent(event any) {
suber.Info("Connection State has changed:" + pcs.String())
switch pcs {
case PeerConnectionStateConnected:
go suber.PlayBlock(suber)
go suber.PlayBlock()
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
suber.Stop()
suber.PeerConnection.Close()