mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Adds the component which receives the messages from client and a module which enabled on a virtual host will start advertising the component. When clients discover the component they will send message to the component with the name of the room where the dominant speaker event happen.
59 lines
1.8 KiB
Lua
59 lines
1.8 KiB
Lua
-- invite will perform the trigger for external call invites.
|
|
-- This trigger is left unimplemented. The implementation is expected
|
|
-- to be specific to the deployment.
|
|
local function invite(stanza, url, call_id)
|
|
module:log(
|
|
"warn",
|
|
"A module has been configured that triggers external events."
|
|
)
|
|
module:log("warn", "Implement this lib to trigger external events.")
|
|
end
|
|
|
|
-- cancel will perform the trigger for external call cancellation.
|
|
-- This trigger is left unimplemented. The implementation is expected
|
|
-- to be specific to the deployment.
|
|
local function cancel(stanza, url, reason, call_id)
|
|
module:log(
|
|
"warn",
|
|
"A module has been configured that triggers external events."
|
|
)
|
|
module:log("warn", "Implement this lib to trigger external events.")
|
|
end
|
|
|
|
-- missed will perform the trigger for external call missed notification.
|
|
-- This trigger is left unimplemented. The implementation is expected
|
|
-- to be specific to the deployment.
|
|
local function missed(stanza, call_id)
|
|
module:log(
|
|
"warn",
|
|
"A module has been configured that triggers external events."
|
|
)
|
|
module:log("warn", "Implement this lib to trigger external events.")
|
|
end
|
|
|
|
-- Event that speaker stats for a conference are available
|
|
-- this is a table where key is the jid and the value is a table:
|
|
--{
|
|
-- totalDominantSpeakerTime
|
|
-- nick
|
|
-- displayName
|
|
--}
|
|
-- This trigger is left unimplemented. The implementation is expected
|
|
-- to be specific to the deployment.
|
|
local function speaker_stats(room, speakerStats)
|
|
module:log(
|
|
"warn",
|
|
"A module has been configured that triggers external events."
|
|
)
|
|
module:log("warn", "Implement this lib to trigger external events.")
|
|
end
|
|
|
|
local ext_events = {
|
|
missed = missed,
|
|
invite = invite,
|
|
cancel = cancel,
|
|
speaker_stats = speaker_stats
|
|
}
|
|
|
|
return ext_events
|