DevicePairing API
Launch and interact with paired devices. Useful for testing launching mobile devices and casting to TVs and set-top boxes.
device_pairing.connect_session
Signatures
connect_session(peer_session_id, timeout \ to_timeout(minute: 1))
Description
Brings up an isolated network between this rig and another of the user's session rigs so a mobile caster here can AirPlay to the receiver there. Blocks until the tunnel is up on both sides, then logs the connection to the session log.
Times out after 1m by default.
device_pairing.launch
Signatures
launch(workflow_id, constraints, timeout \ to_timeout(minute: 2), lua)
Description
Launches a device with the given constraints
Times out after 2m by default
device_pairing.rpc
Signatures
rpc(paired_session_id, function_name, args, timeout \ to_timeout(minute: 1), lua)
Description
Remotely executes the given function name and args on the passed session_id. Only sessions spawned from the current workflow can receive messages
Times out after 1m by default