Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

stream name stuck Broadcasting status, can't push the stream again

Open obackup opened this issue 3 years ago • 3 comments

Short description

During the process of streaming with dumprtmp library, the network may be unstable and the connection may be broken. The streaming is restarted, but the stream name status of the server is still Broadcasting, even if the power is off or has been here for a long time, the status is still Broadcasting。 Can't push the stream again

Environment

Enterprise Edition 2.4.3 20220418_2241

Logs

image

obackup avatar Jul 06 '22 02:07 obackup

Thank you for the issue @obackup. I think we know the reason and we can provide some workaround solution.

Let me put to the backlog to schedule. I think one of my colleague will respond you soon

mekya avatar Jul 18 '22 17:07 mekya

Hi,

1. You can update the status field of the Broadcast object.

Here is an example Rest request:

curl -X 'PUT' 'https://test.antmedia.io:5443/WebRTCAppEE/rest/v2/broadcasts/stream1'   -H 'accept: application/json'   -H 'Content-Type: application/json'   -d '{"streamId": "stream1", "status": "finished"}'

2. You can delete the old one and create a new stream with the same Stream ID.

muratugureminoglu avatar Jul 24 '22 20:07 muratugureminoglu

Hi @obackup ,

We also have a permanent solution for this problem. It's available in 2.4.4-SNAPSHOT https://github.com/ant-media/Ant-Media-Server/issues/4172

mekya avatar Jul 25 '22 10:07 mekya