android / android/media-samples
Only Audio Playing - Android 7.0
- Dominant language
- Kotlin
- Stars
- 1.4k
- Forks
- 781
- PR merge metrics
- No merged PRs in 30d
Description
I am facing an issue on OS 7.0 and 8.0, When i recorded video and playing it, Its playing only audio not showing video.
----Using following setup
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
if (mNextVideoAbsolutePath == null || mNextVideoAbsolutePath.isEmpty()) {
mediaFileR = getVideoFilePath(getActivity().getApplicationContext());
}
mMediaRecorder.setOutputFile(mediaFileR.getAbsolutePath());
mMediaRecorder.setVideoEncodingBitRate(10000000);
mMediaRecorder.setVideoFrameRate(30);
mMediaRecorder.setVideoSize(mVideoSize.getWidth(), mVideoSize.getHeight());
mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);// MPEG_4_SP
mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
Contributor guide
Research direction
Reproduce the issue on Android 7.0 and 8.0 using the MediaRecorder setup shown, including the listed MPEG-4, H.264, and AMR_NB settings. Trace the sample's recording and playback paths; done means a recorded video displays video as well as audio on the affected OS versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100