{
event = "audio_stream_started"
streamId = "588b7eb528b12d03be86f36f"
user_data = "test"
}
local params = ...
if params.event == "audio_stream_started" then
local cameras = require("cameras")
local info = cameras.get_audio_stream_info( params.streamId )
...
end
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 |