shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.25k stars 326 forks source link

[iOS] fix boomerang issue which causes video taken by back camera to be rotated #257

Closed BaderSerhan closed 4 years ago

BaderSerhan commented 4 years ago

As the title suggests, this PR fixes the following iOS issue: applying the boomerang effect on a video recorded via the back camera causes the video to be displayed rotated by 90 degrees.

I added a prop cameraType which indicates the type of camera currently used to record the video, either front or back, so that the fix only applies to the back camera. By default, the camera is set to back.

I tested this in my project and it is working correctly.

shahen94 commented 4 years ago

Thanks for the PR!