使用 SurfaceView 进行视频录制,一切都很好,但是录制时视频向左旋转了 90 度。
setContentView(R.layout.activity_video_capture);
SurfaceView cameraView = (SurfaceView) findViewById(R.id.videoview);
surfaceHolder = cameraView.getHolder();
surfaceHolder.addCallback(this);
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);