• Audio stream is stopped. The event is triggered when camera closes the stream or by delete_audio_stream (if stream was not closed prior to this call). Note that in this case stream is not deleted, you should do it explicitly.
				
					{
    event = "audio_stream_stopped"
    streamId = "588b7eb528b12d03be86f36f"
}				
			
Edit
Field Type Required Description
event string + type of an event
streamId string + an id of the stream
user_data any User data which was passed to create_audio_stream
Edit
				
					local params = ...

if params.event == "audio_stream_stopped" then
    local cameras = require("cameras")
    cameras.delete_audio_stream( params.streamId )
end