Skip to content

Commit

Permalink
docs: notify caution of capture method
Browse files Browse the repository at this point in the history
  • Loading branch information
YangJonghun committed Mar 10, 2024
1 parent d876811 commit 6aa09ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/pages/component/methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Save current frame as a PNG file. Returns promise.

Notes:

- this method can not be used with encrypted video contents (with DRM)
- On Android API level 23 and below capture couldn't support Android `SurfaceView`. if you use SurfaceView, method will be throw an error (`useSurfaceView`, `useSecureView` and `drm` props are internally use SurfaceView).
- For Android API level 29+ you will need to request the [WRITE_EXTERNAL_STORAGE permission](https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE) manually using either the built-in react-native `PermissionsAndroid` APIs or a related module such as `react-native-permissions`
- Also you have to define below code within your `AndroidManifest.xml` file

Expand Down

0 comments on commit 6aa09ad

Please sign in to comment.