Room
Televisit Room
Configuring Room Triggers
org.objects.scripts.insertMany([{
type: 'trigger',
active: true,
configuration: {
event: 'room.after',
object: 'room',
},
description: 'c_room_room_event',
label: 'c_room_room_event',
name: 'c_room_room_event',
principal: null,
script: `
const { arguments: { event, old: room }, context } = script
require('logger').trace(event)
`
},{
type: 'trigger',
active: true,
configuration: {
event: 'participant.after',
object: 'room',
},
description: 'c_room_participant_event',
label: 'c_room_participant_event',
name: 'c_room_participant_event',
principal: null,
script: `
const { arguments: { event, old: room }, context } = script
require('logger').trace(event)
`
},{
type: 'trigger',
active: true,
configuration: {
event: 'track.after',
object: 'room',
},
description: 'c_room_track_event',
label: 'c_room_track_event',
name: 'c_room_track_event',
principal: null,
script: `
const { arguments: { event, old: room }, context } = script
require('logger').trace(event)
`
}]).execute()Room Events
room.after :: room.created - Room is open and available for connection.
room.after :: room.created - Room is open and available for connection.room.after :: room.ended - Room is closed, or ended due to a timeout (empty for 5 minutes).
room.after :: room.ended - Room is closed, or ended due to a timeout (empty for 5 minutes).participant.after :: participant.connected - Participant entered a room
participant.after :: participant.connected - Participant entered a roomparticipant.after :: participant.disconnected - Participant left a room
participant.after :: participant.disconnected - Participant left a roomtrack.after :: track.added - Participant added a track
track.after :: track.added - Participant added a tracktrack.after :: track.removed - Participant removed a track
track.after :: track.removed - Participant removed a tracktrack.after :: track.enabled - Participant un-paused a track
track.after :: track.enabled - Participant un-paused a tracktrack.after :: track.disabled - Participant paused a track
track.after :: track.disabled - Participant paused a trackConfiguring Access
Creating Rooms
Participant Status
Last updated
Was this helpful?