Compare commits

..
Author SHA1 Message Date
Daniel Sogl b2f3be0163 fix(media-capture): correct CaptureError.code type to number 2026-07-27 22:12:13 +02:00
2 changed files with 10 additions and 3 deletions
@@ -21,8 +21,6 @@ export interface UploadEvent {
errorCode?: number; // error code for any exception encountered
progress?: any; // progress for ongoing upload
eventId?: string; // id of the event
uploadDuration?: number; // duration of the upload in milliseconds (UPLOADED state only)
finishUploadTime?: number; // timestamp (ms) at which the upload finished (UPLOADED state only)
}
export interface FTMPayloadOptions {
@@ -61,7 +61,16 @@ export interface MediaFileData {
}
export interface CaptureError {
code: string;
/**
* One of the `CaptureError` codes:
* - `0` - CAPTURE_INTERNAL_ERR: Camera or microphone failed to capture image or sound.
* - `1` - CAPTURE_APPLICATION_BUSY: Camera application or audio capture application is currently serving other capture request.
* - `2` - CAPTURE_INVALID_ARGUMENT: Invalid use of the API (e.g. limit parameter has value less than one).
* - `3` - CAPTURE_NO_MEDIA_FILES: User exited camera application or audio capture application before capturing anything.
* - `4` - CAPTURE_PERMISSION_DENIED: User denied permissions required to perform the capture request.
* - `20` - CAPTURE_NOT_SUPPORTED: The requested capture operation is not supported.
*/
code: number;
}
export interface CaptureAudioOptions {