-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
5,592 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,13 @@ npm install @whiteguru/capacitor-plugin-media-capture | |
npx cap sync | ||
``` | ||
|
||
### or for Capacitor 3.x | ||
|
||
```bash | ||
npm install @whiteguru/[email protected] | ||
npx cap sync | ||
``` | ||
|
||
## iOS | ||
|
||
iOS not available jet | ||
|
@@ -32,8 +39,8 @@ This plugin needs `compileSdkVersion = 31` variable (defined in your app's `vari | |
|
||
<docgen-index> | ||
|
||
- [`captureVideo(...)`](#capturevideo) | ||
- [Interfaces](#interfaces) | ||
* [`captureVideo(...)`](#capturevideo) | ||
* [Interfaces](#interfaces) | ||
|
||
</docgen-index> | ||
|
||
|
@@ -43,33 +50,28 @@ This plugin needs `compileSdkVersion = 31` variable (defined in your app's `vari | |
### captureVideo(...) | ||
|
||
```typescript | ||
captureVideo(options: CaptureVideoOptions) => any | ||
captureVideo(options: CaptureVideoOptions) => Promise<MediaFileResult> | ||
``` | ||
|
||
| Param | Type | | ||
| ------------- | ------------------------------------------------------------------- | | ||
| **`options`** | <code><a href="#capturevideooptions">CaptureVideoOptions</a></code> | | ||
|
||
**Returns:** <code>any</code> | ||
**Returns:** <code>Promise<<a href="#mediafileresult">MediaFileResult</a>></code> | ||
|
||
-------------------- | ||
|
||
--- | ||
|
||
### Interfaces | ||
|
||
#### CaptureVideoOptions | ||
|
||
| Prop | Type | Description | | ||
| --------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **`duration`** | <code>number</code> | Maximum duration per video clip. | | ||
| **`quality`** | <code>"uhd" \| "fhd" \| "hd" \| "sd"</code> | Quality of the video. `uhd` for 4K ultra HD video size (2160p). `fhd` for full HD video size (1080p). `hd` for HD video size (720p). `sd` for SD video size (480p). | | ||
| **`sizeLimit`** | <code>number</code> | Max file size in bytes. | | ||
|
||
#### MediaFileResult | ||
|
||
| Prop | Type | | ||
| ---------- | ----------------------------------------------- | | ||
| **`file`** | <code><a href="#mediafile">MediaFile</a></code> | | ||
|
||
|
||
#### MediaFile | ||
|
||
| Prop | Type | Description | | ||
|
@@ -79,4 +81,13 @@ captureVideo(options: CaptureVideoOptions) => any | |
| **`type`** | <code>string</code> | The file's mime type | | ||
| **`size`** | <code>number</code> | The size of the file, in bytes. | | ||
|
||
|
||
#### CaptureVideoOptions | ||
|
||
| Prop | Type | Description | | ||
| --------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **`duration`** | <code>number</code> | Maximum duration per video clip. | | ||
| **`quality`** | <code>'uhd' \| 'fhd' \| 'hd' \| 'sd'</code> | Quality of the video. `uhd` for 4K ultra HD video size (2160p). `fhd` for full HD video size (1080p). `hd` for HD video size (720p). `sd` for SD video size (480p). | | ||
| **`sizeLimit`** | <code>number</code> | Max file size in bytes. | | ||
|
||
</docgen-api> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.