|
@ -140,6 +140,7 @@ func (rtc *WebRTC) Play(streamPath string) bool { |
|
|
switch connectionState { |
|
|
switch connectionState { |
|
|
case ICEConnectionStateDisconnected: |
|
|
case ICEConnectionStateDisconnected: |
|
|
sub.Close() |
|
|
sub.Close() |
|
|
|
|
|
rtc.Close() |
|
|
case ICEConnectionStateConnected: |
|
|
case ICEConnectionStateConnected: |
|
|
|
|
|
|
|
|
//rtc.videoTrack = rtc.GetSenders()[0].Track()
|
|
|
//rtc.videoTrack = rtc.GetSenders()[0].Track()
|
|
|