跟随引擎4.3.0版本

This commit is contained in:
dexter
2022-06-19 23:44:04 +08:00
parent 05117be5d6
commit 6a5d740a21

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()
go suber.PlayRaw()
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
suber.Stop()
suber.PeerConnection.Close()