Skip to content

Commit e2ea91f

Browse files
committed
docs: add duration docs
1 parent 8adb9d5 commit e2ea91f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/client/docusaurus/docs/javascript/02-guides/03-call-and-participant-state.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Here is an excerpt of the call state properties:
5555
| `createdBy$` | `createdBy` | The user who created the call. |
5656
| `custom$` | `custom` | Custom data attached to the call. |
5757
| `dominantSpeaker$` | `dominantSpeaker` | The participant that is the current dominant speaker of the call. |
58+
| `duration$` | `duration` | The duration since the start of the call in seconds. |
5859
| `egress$` | `egress` | The egress data of the call (for broadcasting and livestreaming). |
5960
| `endedAt$` | `endedAt` | The time the call was ended. |
6061
| `endedBy$` | `endedBy` | The user who ended the call. |

packages/react-native-sdk/docusaurus/docs/reactnative/03-core/03-call-and-participant-state.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Here is an excerpt of the available call state hooks:
6969
| `useCallCreatedAt` | The time the call was created. |
7070
| `useCallCreatedBy` | The user that created the call. |
7171
| `useCallCustomData` | The custom data attached to the call. |
72+
| `useCallDuration` | The call duration since the start of the call in seconds. |
7273
| `useCallEgress` | The egress information of the call. |
7374
| `useCallEndedBy` | The user that ended the call. |
7475
| `useCallIngress` | The ingress information of the call. |
@@ -205,7 +206,7 @@ const hosts = participants.filter((p) => p.roles.includes('host'));
205206

206207
// participants that publish video and audio
207208
const videoParticipants = participants.filter(
208-
(p) => hasVideo(p) && hasAudio(p),
209+
(p) => hasVideo(p) && hasAudio(p)
209210
);
210211
```
211212

0 commit comments

Comments
 (0)