Just found out the bug, in this line:
mediaRecorder.setVideoSize(sView.getWidth(), sView.getHeight());
after commenting out this line, the code runs perfectly!
More Related Contents:
- Media Recorder with Google Vision API
- Taking picture from camera without preview
- Android Camera : data intent returns null
- Allow user to select camera or gallery for image
- Using both front and back cameras simultaneously android
- How to get camera result as a uri in data folder?
- android camera surfaceview orientation
- Camera display / preview in full screen does not maintain aspect ratio – image is skewed, stretched in order to fit on the screen
- How to ask runtime permissions for Camera in Android , Runtime storage permissions
- Intent does not set the camera parameters
- EXIF orientation tag value always 0 for image taken with portrait camera app android
- Android emulator camera custom image
- Can you launch the native Camera App from an Html 5 Web App?
- How to capture image from custom CameraView in Android?
- broadcast receiver won’t receive camera event
- setRotation(90) to take picture in portrait mode does not work on samsung devices
- Force a camera to always open in portrait mode in android [duplicate]
- Activity killed / onCreate called after taking picture via intent
- My Android camera Uri is returning a null value, but the Samsung fix is in place, help?
- Permission Denial: not allowed to send broadcast in android
- Upload an Image from camera or gallery in WebView
- Custom camera android
- Correct handling of exception: “getParameters failed (empty parameters)”
- Converting YUV_420_888 to JPEG and saving file results distorted image
- Calling camera from an activity, capturing an image and uploading to a server
- Camera on Android Eclipse emulator:
- Make a SurfaceView larger than the screen (Fitting a camera preview to a SurfaceView larger than the display)
- camera app not working?
- How to launch front camera with intent?
- Android 11 (R) return empty list when querying intent for ACTION_IMAGE_CAPTURE