Skip to content

peerconnection state fail #3140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zxfskr opened this issue Jun 5, 2025 · 0 comments
Closed

peerconnection state fail #3140

zxfskr opened this issue Jun 5, 2025 · 0 comments

Comments

@zxfskr
Copy link

zxfskr commented Jun 5, 2025

Your environment.

  • Version: go 1.20、win10
  • Browser: electron 35
  • Other Information - stacktraces, related issues, suggestions how to fix, links for us to have context

my code:

suber.OnICEGatheringStateChange(func(gatheringState webrtc.ICEGatheringState) {
	logger.Lg.Error("suber ICE Gathering State has changed:" + gatheringState.String() + ", streamPath:" + streamPath)
})

suber.OnConnectionStateChange(func(state webrtc.PeerConnectionState) {
	logger.Lg.Error("suber peer Connection State has changed:" + state.String() + ", streamPath:" + streamPath)
})

the error log:
2025-06-05 14:40:11.820 ERROR webrtc/index.go:184 suber ICE Connection State has changed:connected, streamPath:live/55/camera_6d7f39680a55ad12116dd6d2dd5c8e50a102a50dc65138ba07a90096cd9f2f8b
2025-06-05 14:40:11.822 ERROR webrtc/index.go:192 suber peer Connection State has changed:connected, streamPath:live/55/camera_6d7f39680a55ad12116dd6d2dd5c8e50a102a50dc65138ba07a90096cd9f2f8b

The issue is :
when pull the stream after 30s, the Peer Connection (PC) status changes to "fail", the video tag on the frontend that plays the stream continues to function normally until the PC connection is explicitly closed. Why does this happen? Do you have any suggestions for troubleshooting this behavior?

What did you do?

Following the WHIP example, I wrote the logic for stream ingestion and playback.

What did you expect?

I want to understand why, after successful stream playback (pulling), the video tag plays normally for 30 seconds but then the PeerConnection (PC) state transitions to 'failed'. How can I locate the root cause?
Additionally, why does the video tag continue to play the stream normally even when the PC state is 'failed', until the connection is explicitly closed?

What happened?

@zxfskr zxfskr closed this as completed Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant