all I am working on an app,where I just want to check if microphone is on or off.
i.e when the microphone is recording audio,it should show on.when it is not it should show off.
How to check whether microphone is used by any background app
I tried this and also saw about AudioRecorder in android developer site.But I am not getting it right.Can anyone help me??Thanks in advance .
Edit:
can anyone suggest how to run it in background
Related
I am trying to disable screen record and screenshot in my flutter app and I already did using flutter_windowmanager package.
my problem is with screen recording, the sound of the video inside th app is still running and recorded by screen recording !
any suggestions for also preventing sound record ?
No. If your app is playing loud enough the microphone can hear it, it can be recorded. There's no way to prevent that- algorithmically canceling out sound from one source in an audio recording like that would be difficult, if not impossible. Nor would it really buy you all that much- they could always just hold an external mic up to the phone (they can also just capture your app with a second camera, which makes removing video recording also of limited use, if done to prevent a user from recording).
The one thing you could do is claim the mic yourself and not give it up. But that would be annoying to anyone actually using your app. And wouldn't rpevent capture with an external device of course.
In my current project I have an Audio file which plays all the time. As soon as I click the record button the audio stops. When I disable the microphone it works but I actually want to record my own voice (like a karaoke) This Problem only occurs only on Android.
Is there any hack to fix this Problem?
Just worked on a filter where I had to build a karaoke style gameplay, what I noticed was Spark does not like playing audio AND recording on mic as it probably causes weird artifacting if not implemented properly. It seems like something that will be added line.
Possible fixes to get your filter working for now, add instructions to use the filter with headphones, connecting to an external audio device will let you play audio and record using the mic at the same time. This works on android, not on iOS. You have to give players visual cues to sing along or whatever your objective maybe.
Hope this is sorted out and fixed in the coming updates, really handicaps the kind of experiences possible on the platform.
Hope this helped.
I'm doing an app that has a media player working on notifications , and I want to be able to mute/stop, When the phone is turned over or the screen is covered.
Can anyone give me pointers how to implement This, many thanks.
I am working on application in which I have implemented searching with VoiceRecognizer but I want to disable/mute beep.
If it is possible then please give best solution.
Is there any way to turn on the camera and start recording the scene and stop it after programmatically?
I googled on this but could not get any helpful info. Please help.
Sometimes Developer guide is more time saving than looking for code snippets on the web.