react-native-view-shot icon indicating copy to clipboard operation
react-native-view-shot copied to clipboard

Support capture SurfaceView on Android

Open jhen0409 opened this issue 1 year ago • 1 comments

Continues of #323.

  • Use PixelCopy.request to capture SurfaceView content
  • Update video example
    • Upgrade react-native-video to latest alpha version because v5.2 doesn't work (jcenter issue)
    • Set useTextureView={false} to use surface view (ref: https://github.com/react-native-video/react-native-video/blob/08c2220e1663808a7bac76babc404b51154a50af/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java#L107)
    • Keep the old video example, it used TextureView. So we can see two videos in example

jhen0409 avatar Jul 24 '22 04:07 jhen0409

@gre Please review this. Thanks!

jhen0409 avatar Jul 24 '22 04:07 jhen0409

Thanks!

gre avatar Aug 20 '22 19:08 gre