Skip to content

Commit

Permalink
docs(ios): describe 'quality' in CaptureVideoOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ath0mas committed Mar 21, 2021
1 parent fee9dcd commit a105e2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,15 @@ capturing a video clip, the `CaptureErrorCB` callback executes with a

- The __limit__ property is ignored. Only one video is recorded per invocation.

- iOS supports an additional __quality__ property, to allow capturing video at different qualities. A value of `0.5` ( the default ) means medium quality, value of `1` means high quality and value of `0` means low quality.
See [here](https://developer.apple.com/documentation/uikit/uiimagepickercontroller/1619154-videoquality?language=objc) for more details.

### Android Quirks

- Android supports an additional __quality__ property, to allow capturing video at different qualities. A value of `1` ( the default ) means high quality and value of `0` means low quality, suitable for MMS messages.
See [here](http://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_VIDEO_QUALITY) for more details.

### Example ( Android w/ quality )
### Example ( w/ quality )

// limit capture operation to 1 video clip of low quality
var options = { limit: 1, quality: 0 };
Expand Down

0 comments on commit a105e2e

Please sign in to comment.