{
event = "audio_stream_error"
streamId = "588b7eb528b12d03be86f36f"
errorMessage = "..."
}
Field | Type | Required | Description |
---|---|---|---|
event | string | + | type of an event |
streamId | string | + | an id of the stream |
errorMessage | string | + | an error message |
user_data | any | – | User data which was passed to create_audio_stream |
local params = ...
if params.event == "audio_stream_error" then
local cameras = require("cameras")
cameras.delete_audio_stream( params.streamId )
end