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 answers
Related Questions in AUDIO-RECORDING
- Echo cancellation for a windows desktop audio recording app in Windows C++
- MediaRecorder RecordedChunks Empty Issue in React Component - Unable to get Recorded Audio
- MediaStream error obstructs audio recording from microphone
- Kotlin notify and record call when you receive it
- How to record the speaker audios from youtube , google meeting or zoom meeting etc in reactjs recording application?
- Record video in Next js socket io
- Is there anyway in Swift(UI) to be able to record sound played through the device while ignoring the microphone
- How to save all of the recently recorded real-time audio into a .mp3 or a .wav file?
- Audio recording is not working in apple devices in next js app
- How to record screen + tab audio (internal audio) + system mic audio in ReactJS
- Audio recording using RecordRTC: Blob Size Difference Between Android and Windows on Chrome
- React Native Recording issue with iOS even after compression
- Is it possible to have Expo app record audio when the app goes in background? [iOS primarily]
- audio record package for Flutter
- White noise but no sound // Recording audio from electret microphone preamp on Raspberry Pi Pico (ADC) // Micropython
Related Questions in ANDROID-AUDIORECORD
- How to enable echo-cancellation on Android Voip App?
- Detect the voice of multiple person speaking
- How to avoid audio output switching from remote_submix to speaker when the microphone is turned on?
- MediaRecorder incorrect bitrate in output file?
- Audio recording from BT device (car radio/head unit) can cause automatic phone calls?
- How to use audio/WebRtcAudioRecord rather than voiceengine/WebRtcAudioRecord
- Can not record during calls
- Getting Error -38 during AudioRecord native read and AudioSystem.INVALID_OPERATION
- ContentResolver.insert() creates audio file of "audio/aac" mime type with .aac extension instead of .m4a
- Audio recording silenced upon Play Store app installation
- Audio record glitchy audio
- Buffering Android AudioRecord read with System.arraycopy
- Kotlin - Encoding Raw PCM data to ACC encoded using Media Codec and Muxer
- AudioRecord read() does not return same amount of bytes as requested in sizeInBytes
- Issues with Restarting Audio Recording in .NET 7 MAUI App Using Android AudioRecord
Related Questions in SCREEN-RECORDING
- How can I record the entire screen outside of my Flutter app or control a specific area for recording, including sound?
- Is there a way to start screen recording of a external application from my own Android application
- Take Screenshot Simultaneously While Recording Screen using media Projection API in Android
- Preventing users from recording playback videos in browser using NextJS
- Cannot get screen captures faster than one per 17 ms
- How to create Floating bubble/Floating ball in android
- Appium Python screen-recorded video is sped-up
- Synchronizing input, desktop video capture, and sound capture on Linux
- Stop Screen Recording in ReplayKit iOS with flutter appDelegate and ScreenShare target
- Preventing Screenshots and Screen Recording through DRMs?
- Using aiortc to stream live video feed instead of a video file
- How to record screen + tab audio (internal audio) + system mic audio in ReactJS
- Is there any way where i can detect screen recording/ capturing/screen sharing is on by other application in my android application?
- java.lang.IllegalStateException: Must register a callback before starting capture, to manage resources in response to MediaProjection states
- How can I encode multiple mediaStreamSource as one file in uwp?
Related Questions in ANDROID-VIDEO-RECORD
- android capture intruder video from lockscreen
- Video recording and Frame processing at same time in Android using CameraX
- How to do background recording with front camera in Android using Kotlin
- Can I save timestamp in a video file on Android?
- Recording SurfaceView in Android
- Can we do Speech Recognition and Video Capture in Android using camerax simultaneously?
- Android ACTION_VIDEO_CAPTURE - Only owner is able to interact with pending item content
- Use MediaRecorder API instead of Intent for camera recording in Android
- MediaRecorder - safe outputformat (video container) and codec to record playable video even when a device suddenly turns off
- Android how to stream video to remote server
- Android: How to decect video size with Android Camera API
- Camera app fails on android ffmpeg application
- How to get camera permission android
- Use both back and front camera for the same MediaRecorder session Camera2API
- Android : Unable to preview video recorded during authoring
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?
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)
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.