recording

very poor quality of audio recorded on my droidx using MediaRecorder, why?

自作多情 提交于 2019-11-28 00:11:08
my project requires me to be able to record audio on an android device. i implemented solution using the MediaRecorder() but the recorded audio is in a terrible quality. what am i doing wrong? i must think that this cant be the only way to record audio :) perhaps i am doing something wrong, i am including my code below. please point me to the right direction. thanks! MediaRecorder recorder = new MediaRecorder(); File outputFile = new File(Environment.getExternalStorageDirectory(), "audio.3gp"); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder

Canvas recording using captureStream and mediaRecorder

偶尔善良 提交于 2019-11-27 21:57:11
问题 How can i record streams from more than one canvas? ie, when i change one canvas to other it has to record the active canvas continue to the first. I have done like this: stream = canvas.captureStream(); mediaRecorder = new MediaRecorder(stream, options); mediaRecorder.ondataavailable = handleDataAvailable; mediaRecorder.start(10); function handleDataAvailable(event) { recordedBlobs.push(event.data); } But when adding another stream, only the first part is recorded. I'am pushing recorded data

Access microphone from a browser - Javascript

浪子不回头ぞ 提交于 2019-11-27 18:31:37
Is it possible to access the microphone (built-in or auxiliary) from a browser using client-side JavaScript? Ideally, it would store the recorded audio in the browser. Thanks! Here we capture microphone audio as a Web Audio API event loop buffer using getUserMedia() - time domain and frequency domain snippets of each audio event loop buffer is printed (viewable in browser console just hit key F12 or ctrl+shift+i ) <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>capture microphone audio into buffer</title> <script type="text/javascript"> var webaudio

Background video recording in Android 4.0

若如初见. 提交于 2019-11-27 17:13:32
I try to organize background video recording in Android 4.0. But I can't do it because of these problems: Dummy Surface does not work in MediaRecorder (error: invalid surface) If you use Surface 1 x 1 px on Activity, Surface is destroyed on Activity pause (recording is stopped) If you use Surface 1 x 1 px on WindowsManager, Surface is destroyed on Application pause (recording is stopped) SurfaceTexture does not work in MediaRecorder.setPreviewDisplay(new Surface(SurfaceTexture)) Widget does not allow to handle Surface 1 x 1 px Status Bar does not allow to handle Surface 1 x 1 px Please, help

Prevent other applications form capturing/recording screen

ⅰ亾dé卋堺 提交于 2019-11-27 13:54:08
问题 Basically i want VIDEO PIRACY PROTECTION My application has video streaming and I want to protect my video streaming from other applications. Other applications should not be able to capture screen while my video is playing. Any suggestions how can i achieve this.. Thanks in advance. 回答1: You can secure screen capturing functionality by adding FLAG_SECURE into your Activity as follows getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE); Check this link which says Screen

Can the Android emulator record and play back audio using pc hardware?

余生颓废 提交于 2019-11-26 23:11:37
I don't have an android phone, but i'm trying to develop for it anyway. The only way to test my application at the moment is to use the emulator, which I've read does not support audio recording. However, I read about the startup command "-audio " which allows audio input/output from your pc using the 'winaudio' backend. I haven't been able to get it to work though, is it possible to record using my pc's microphone? If so, what am I doing wrong? Tom Recording audio is possible at least in the standard 2.3.3 emulator on Windows 7; I have tried it and it works. However, the recorded audio did

Record Android Audio Output

为君一笑 提交于 2019-11-26 20:23:53
Many people are asking for this, no one seems to have an answer so I do neither. How is it possible that some apps serve the function to record the audio output of the android system? Everything I am finding is the very same tutorial on 1432 different sites where you can record MIC input. I don't care about mic input, I want the audio output and just can't imagine how to access it. If everyone can get me on the right way, I would be so happy. Rukmal Dias Seems to be currently there is no way to achieve this. I have read this article and it suggests to recompile the Android source code with

Access microphone from a browser - Javascript

…衆ロ難τιáo~ 提交于 2019-11-26 19:35:08
问题 Is it possible to access the microphone (built-in or auxiliary) from a browser using client-side JavaScript? Ideally, it would store the recorded audio in the browser. Thanks! 回答1: Here we capture microphone audio as a Web Audio API event loop buffer using getUserMedia() - time domain and frequency domain snippets of each audio event loop buffer is printed (viewable in browser console just hit key F12 or ctrl+shift+i ) <html><head><meta http-equiv="Content-Type" content="text/html; charset

Background video recording in Android 4.0

别说谁变了你拦得住时间么 提交于 2019-11-26 18:54:37
问题 I try to organize background video recording in Android 4.0. But I can't do it because of these problems: Dummy Surface does not work in MediaRecorder (error: invalid surface) If you use Surface 1 x 1 px on Activity, Surface is destroyed on Activity pause (recording is stopped) If you use Surface 1 x 1 px on WindowsManager, Surface is destroyed on Application pause (recording is stopped) SurfaceTexture does not work in MediaRecorder.setPreviewDisplay(new Surface(SurfaceTexture)) Widget does

How to record phone calls in android?

二次信任 提交于 2019-11-26 11:31:37
I want to make an app which records the incoming and outgoing calls and it run automatically when user get or make any call. Pratik Dasa Ok, for this first of all you need to use Device Policy Manager, and need to make your device Admin device. After that you have to create one BroadCast receiver and one service. I am posting code here and its working fine. MainActivity: public class MainActivity extends Activity { private static final int REQUEST_CODE = 0; private DevicePolicyManager mDPM; private ComponentName mAdminName; @Override protected void onCreate(Bundle savedInstanceState) { super