Video Appointments
Use the Video Appointments screen to conduct a real-time video consultation between a doctor and a patient.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Video area | Displays participant video feeds |
| 2 | Session details | Displays participant labels and call duration |
| 3 | Call controls | Control audio, video, camera, and call status |
| 4 | Report issue action | Opens the issue report flow |
Access
Open the video room from:
- Appointment List
- Appointment Details
Session Lifecycle
- Schedule the appointment.
- Start the video room.
- Validate camera and microphone access.
- Display the waiting state until the other participant joins.
- Start the active consultation.
- End the call and update the appointment state.
Workflow
- Select Start call.
- Grant camera and microphone access.
- Wait for the patient to join.
- Use the call controls as required.
- Select End call.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| Camera or microphone access is unavailable | Block the call and display permission guidance | error = permission_required |
| Permission request is dismissed | Preserve the disconnected state | state = not_connected |
| Camera switch is unsupported | Hide Swap camera | swapCamera = unavailable |
| Connection cannot start | Display a connection error | state = error |
| Session reaches the inactivity limit | Disconnect the call | state = timed_out |
| Session is invalid | Reject the request | state = unauthenticated |
Actions
| Scenario | App behavior | SDK output |
|---|---|---|
| Start call selected | Initialize the video room | state = waiting |
| Microphone selected | Toggle microphone access | audioEnabled = true/false |
| Video selected | Toggle the camera stream | videoEnabled = true/false |
| Swap camera selected | Change the active camera | camera = updated |
| End call selected | Close the session | state = ended |
| Report issue selected | Open the issue report flow | Navigation event |
Endpoint Resources
Video Visit
PUT
v3/appointments/{appointment-id}/video-room
Returns the video room for the specified appointment.
UI Element Types
| Level | Reference | Type | Value | Placement |
|---|---|---|---|---|
| 1 | start-call | Button | Start call | — |
| 1 | end-call | Link | End call | ~ |
| 1 | report-issue | Link | Report issue | ~ |
| 1 | spacer | Spacer | — | ~ |
| 1 | swap-camera | Link | Swap camera | ~ |
| 1 | disable-video | Link | Disable video | ~ |
| 1 | mute | Link | Mute | ~ |