deepar 5.0.0-alpha-1 → 5.0.0-alpha-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -190,7 +190,9 @@ Set up your own camera or custom video source:
190
190
  const deepAR = await deepar.initialize({
191
191
  // ...
192
192
  additionalOptions: {
193
- disableDefaultCamera: true
193
+ cameraConfig: {
194
+ disableDefaultCamera: true
195
+ }
194
196
  }
195
197
  });
196
198
 
@@ -206,12 +208,14 @@ This is used when you do not want to ask the camera permission right away.
206
208
  const deepAR = await deepar.initialize({
207
209
  // ...
208
210
  additionalOptions: {
209
- disableDefaultCamera: true
211
+ cameraConfig: {
212
+ disableDefaultCamera: true
213
+ }
210
214
  }
211
215
  });
212
216
 
213
217
  // When you want to ask the camera permission and start the camera.
214
- deepAR.startCamera();
218
+ await deepAR.startCamera();
215
219
  ```
216
220
 
217
221
  ## License