mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-13 02:23:56 +08:00
跟随引擎4.3.0版本
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()
|
||||
go suber.PlayRaw()
|
||||
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
|
||||
suber.Stop()
|
||||
suber.PeerConnection.Close()
|
||||
|
Reference in New Issue
Block a user