Skip to content

Commit fd0cb76

Browse files
committed
add captureCameraPicture function documentation
1 parent 5e56335 commit fd0cb76

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/dev-guide/iframe-functions.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ title: Functions
55

66
Use the following API functions to control your embedded Jitsi Meet Conference.
77

8+
### captureCameraPicture
9+
10+
Mobile browsers only. Captures a high quality picture using the device's camera. All parameters are optional.
11+
12+
```javascript
13+
api.captureCameraPicture(
14+
cameraFacingMode, // the facing mode: environment/user. Defaults to environment.
15+
descriptionText, // a custom description text to replace the default text on the consent dialog.
16+
titleText // a custom title to replace the default title on the consent dialog.
17+
).then(data => {
18+
// data is an Object with only one param, either dataURL on success or error on failure.
19+
// - dataURL is the base64 string of the taken picture
20+
// - error is a string, a verbose explanation of the problem
21+
// data.dataURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAA..."
22+
});
23+
```
24+
825
### captureLargeVideoScreenshot
926

1027
Captures a screenshot for the participant in the large video view (on stage).

0 commit comments

Comments
 (0)