Hi,
The destination stream refers to the output HLS stream created after an input stream is connected. When the input stream is disconnected, the output HLS stream still exists unless the createHlsStream command used had a "keepAlive=0" parameter. If the keepalive parameter is omitted, the createHlsStream command defaults to "keepAlive=1". Please refer to the EMS API Definition document for details.
If you need to set "keepAlive=1" for createHlsStream, one way to remove the output HLS stream after the input stream dies is to use the listConfig and removeConfig commands. Use the listConfig command to show the configId of the configuration entry for the stream to be removed (don’t confuse this with the streamId). Use the removeConfig command with id parameter set to the configId of the HLS stream. For example:
removeConfig id=<configId>
where <configId> is the ID of the configuration entry for the HLS stream obtained using the listConfig command.
Cheers,
Don