I m using MediaRecorder to record video. while third-party screen recorder is running at time media recorder through illegal state exception. Everything works as expected if I kill the screen recorder app. Is there an elegant solution to allow my app to access the MediaRecorder even if another app is already using it?
Unable to record video when another screen recorder app is running in android
1.3k Views Asked by Sanjay Bhalani At
1
There are 1 best solutions below
Related Questions in AUDIO-RECORDING
- recorderJS record/download audio buffer WEB AUDIO API
- audioManager.abandonFocus(myFocusListener) does not happen fast enough
- Moto G call recording issue
- Implementing audio recording from bluetooth headset
- How to record audio from Audio Element using javascript
- Parsing a WAV/PCM audio
- Audio Capture in windows phone 8 with external microphone
- Record signal in AudioKit to file
- AudioRecord using bluetooth headset
- AvAudioRecorder stops/restart after recording just started
- Scrambled noise when trying to fill audioBuffer with tarsosdsp audioEvent-Buffer
- GARAGEBAND: Cannot listen while recording. Tried it all still nothing
- Swift and audio recording
- Continuous Audio recording in Java via line-in or microphone inputs
- Is my audio normalization code correct?
Related Questions in ANDROID-AUDIORECORD
- Android: Display data captured using AudioRecord in form a dynamic chart using android plot
- Android: an external hardware interrupt from Audio
- AudioRecord audio capture
- Audio Recording in Stereo giving same data in Left and Right channels
- AudioRecord.getRoutedDevice() returns null on most of the Android device
- Android - Concatenate encoded mp3 data and mp3 file data
- AudioRecord object not initializing
- How do AudioRecord save a file (PCM.WAV)?
- Android AudioRecord - Won't Initialize 2nd time
- what order does AudioRecord class of Android store the audio samples in?
- Soundtouch library compile issue
- Multichannel Audio recording in Android
- MediaRecorder start called in invalid state: 4 || E/AudioRecording: prepare() failed
- Android Intent Never Launches Sound Recorder
- Android - Release resources when starting a call
Related Questions in SCREEN-RECORDING
- Call screenrecord within android app on samsung device not working
- Screen record button is grayed out in Android Studio
- permission of start capturing everything that display in my screen in android
- Android: How to record the orientation change in MediaProjection API
- Android Studio 0.8 screen record with microphone?
- Screen Recording kitkat with button
- Is it possible to record screen along with audio in android?
- Record multi audio tracks available in a stream with MediaRecorder
- Is it possible to use MediaProjection API and process every recorded frame during recording?
- adb screenrecord Secondary Display from listed displays in dumpsys
- How to record a mobile app UI running on a virtual device
- How to pause screen recording in AVFoundation
- Run screenrecord command programmatically without root result file size is zero
- How to Record any classes videos when i start recording it goes black screen
- Video recorded from screen using opencv, pyautogui and numpy is faster than the original or slower
Related Questions in ANDROID-VIDEO-RECORD
- Use both back and front camera for the same MediaRecorder session Camera2API
- android capture intruder video from lockscreen
- Android : Unable to preview video recorded during authoring
- Video recording and onPreviewFrame callback at the same time
- Mute microphone while capturing video using intent on Android 6.0.1 or above
- Add video path to file provider paths
- Can I save timestamp in a video file on Android?
- Adding images to video with help of this MediaCodec Api
- Record Screen / Take several screenshots of TextureView+other views
- Android CameraX CameraView how to set video resolution?
- No callback for startActivityForResult in case of MediaStore.INTENT_ACTION_VIDEO_CAMERA
- Android how to stream video to remote server
- Camera2 API switching camera during recording
- Unable to record video when another screen recorder app is running in android
- Android: How to decect video size with Android Camera API
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Only one app at a time can access the microphone. while screen recorder app is running and can access Microphone at the time I have tried to record video using inbuild native camera but can't record video due to microphone busy with another app.
Also, there is no standard way to inform another app that you want access to the microphone (so that they release the resources and let you access it).I would recommend you to simply inform the user that the microphone is currently not available because you can't do anything else or we can record video without audio.
Using below code, I have recorded video without audio.