mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-13 10:33:45 +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())
|
suber.Info("Connection State has changed:" + pcs.String())
|
||||||
switch pcs {
|
switch pcs {
|
||||||
case PeerConnectionStateConnected:
|
case PeerConnectionStateConnected:
|
||||||
go suber.PlayBlock()
|
go suber.PlayRaw()
|
||||||
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
|
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
|
||||||
suber.Stop()
|
suber.Stop()
|
||||||
suber.PeerConnection.Close()
|
suber.PeerConnection.Close()
|
||||||
|
Reference in New Issue
Block a user