Apply a device's message to a recording session
Update a multi-camera recording session when one device (a camera, a watch, a remote control) joins, leaves, reports its state or hands over the primary role
Update a multi-camera recording session when one device (a camera, a watch, a remote control) joins, leaves, reports its state or hands over the primary role
Give session ({ id, states, primary?, devices? }: states are the states a device can report, the first being where a joining device starts; leave out primary and devices for a new session) and message ({ session, device, type }): type join (role primary or secondary, default secondary), leave, state (state: one of the session's states) or handover (from: the current primary, device: the one taking over). Returns the session after the message. A message for another session, with no device, from a device that never joined, joining twice, taking a primary that is held, handing over from a device that is not primary, naming an unknown state or type, changes nothing and returns the session as it was with ignored { reason, message }. Exactly one device is primary; the primary leaving leaves none. Nothing is kept: hand the returned session in with the next message.
Nothing: your AI starts it with your words.
Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.
Say to your AI: “Use Trillion to update a multi-camera recording session when one device (a camera, a watch, a remote control) joins, leaves, reports its state or hands over the primary role”