bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
12.49k stars 1.55k forks source link

[doc] please document that api /v3/webrtcsessions/list may return not ready publish session. #3057

Closed bronze1man closed 7 months ago

bronze1man commented 9 months ago

Which version are you using?

v1.5.1

Which operating system are you using?

Linux amd64 standard

Describe the issue

Api /v3/webrtcsessions/list may return not ready publish session. Try whep with createOffer with that path will get a 404 stream not found error.

Describe how to replicate the issue

  1. start the server.
  2. start a page1 ,try call /v3/webrtcsessions/list every seconds if the item list with filter item.State == APIWebRTCSessionStatePublish && item.PeerConnectionEstablished changes,then start whep the new path. And do not reconnect after the whep api fail.
  3. start a page2 publish with a new random path.
  4. page1 may fail with 404 stream not found, and can not see page2 in page1.
  5. reload page1 will solve this problem.

Did you attach the server logs?

no

Did you attach a network dump?

no

known solution to this problem:

aler9 commented 7 months ago

Hello, i read the description of this issue multiple times, but i really couldn't understand what the problem is or how to replicate it. The language is not clear and you are mentioning at the same time the API, the WebRTC publish page, the WebRTC read page and some custom code too.

If you still have troubles, create another issue and describe more clearly what the problem is and how to replicate it.

github-actions[bot] commented 1 month ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.