mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-30 10:06:21 +08:00
升级playblock
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user