video-recording

Capture video with flutter

删除回忆录丶 提交于 2019-11-27 12:58:41
问题 Hi I am in the process of developing an app with flutter with video recording functionality. I have come across 2 plugins with ability to capture/save an image as a file with flutter: Camera v0.0.2 and Image_picker v0.2.1 , they work well and are official flutter plugins. In essence I would like to build a mini camera plugin with video recording capabilities with flutter, which would work with iOS and Android seamlessly. Any suggestions, direction, methods to upgrade these plugins are welcome

how to change video orientation in MediaRecorder to portrait

陌路散爱 提交于 2019-11-27 11:36:51
问题 When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation. How to force MediaRecorder/Camera use real orientation ? 回答1: refer to Camera.Parameters.setRotation() for more information. There is an example there and instead of calling setRotation(rotation) try to call mediaRecorder.setOrientationHint(rotation) when recording video. 回答2: Add the following two lines of code: Camera.setDisplayOrientation(90); // use for set the orientation of

How to make video captured by front camera not being inverse Android?

▼魔方 西西 提交于 2019-11-26 12:17:49
问题 I recording video using MediaRecorder.When using back-camera,it working fine,but when using front camera,the video captured is being flipped/inverse.Means that the item in right,will appear on the left.The camera preview is working fine,just final captured video flipped. Here is the camera preview looks like But the final video appear like this (all the item in left hand side,appear on right hand side) What I tried so far: I tried to apply the matrix when prepare recorder,but it seems does