Wowza Community

how to disconnect a stream which is connect without stream file, Example appName:xxxx or streamName:2263. I am stuck in issue please help as soon as possible.

here is not any disconnect option in Action field.
if i am using :

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-Type:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/xxxx/instances/definst/incomingstreams/2263/actions/disconnectStream

command Not working.

Showing this type of message

{“message”:“The server has not found anything matching the request URI”,“code”:“404”,“wowzaServer”:“4.7.1”,“success”:false}

The disconnectStream action endpoint that you are using is not suitable for these types of streams. The disconnectStream is only used for streams that are connected using the MediaCaster stream file, where the server is the one that initiated the connection. In the streams you have, these look to be initiated by the encoder (push type of publish). For example, Wirecast and OBS are push-type encoders.

If you need to remove these streams, you will need to reject them using custom security methods, such as blocking by IP address or blocking according to bandwidth usage.

So, is there any way to programmatically stop/disconnect particular stream which is broadcasting via OBS using Wowza Streaming Engine REST API?

No you will need to stop it manually. As Michelle said OBS is pushing the stream to Wowza and we can only programmatically stop or disconnect a stream in the REST API where we pull the stream file like from an IP camera when someone attempts connect to a surveillance stream. Wowza can pull that stream.

With OBS or most RTMP encoders, the stream is being pushed to the Wowza media server.

1 Like