| Ocalt Query Language
Pricing Dashboard ocalt.com v1.0

Audio/Video Bridge

Establish peer-to-peer audio and video calls between users. NEW AUDIO BRIDGE and NEW VIDEO BRIDGE create rooms with join tokens. Participants connect using the returned token URL.

VerbDescription
NEW AUDIO BRIDGE SET ?roomCreate an audio bridge room
NEW VIDEO BRIDGE SET ?roomCreate a video bridge room
PEERS ?room SET ?listList connected peers in a room — returns array
Room object fieldDescription
room_idUnique room identifier
join_url_callerURL for the first participant to open in their browser
join_url_receiverURL for the second participant
kind"audio" or "video"

Create an audio call

NEW AUDIO BRIDGE SET ?room AFTER EMIT ?room(join_url_caller) AFTER EMIT ?room(join_url_receiver)
Try it ›

Create a video call

NEW VIDEO BRIDGE SET ?room AFTER EMIT ?room

One-click call flow (Site Mode)

NEW VIDEO BRIDGE SET ?room AFTER EMAIL "Join here: " & ?room(join_url_receiver) TO !REQUEST(form:guest_email) WITH "Video call invite" AFTER REDIRECT ?room(join_url_caller) AS "302"
[agenda] — NEW AUDIO BRIDGE and NEW VIDEO BRIDGE example syntax is being corrected. Current examples may not match the runtime exactly.

NEW TUNNEL

Peer-to-peer data/file transfer room. For files, binary data, and streams — not for media streaming. See TUNNEL → for full documentation.

NEW TUNNEL SET ?room AFTER EMIT ?room(room_id)
VerbDescription
NEW TUNNEL SET ?roomAllocate a peer-to-peer data transfer room. → {room_id, sender_url, receiver_url, expires}
TUNNEL SEND "path" TO ?roomJoin room as sender. Accepts file paths and RTSP URLs.
TUNNEL RECEIVE ?room INTO "/mounted/path" SET ?pathJoin room as receiver. Writes to OQL virtual storage.
TUNNEL CLOSE ?roomExplicitly close the tunnel room.