mediarecorder

Use microphone in webrtc & media recorder simultaneously in Android?

北战南征 提交于 2020-08-17 10:09:23
问题 I am using webrtc for video calling in android. I am simultaneously screen recording after call is connected in sender end. I am getting this error log in sender end. Receiver end voice is not hearing when screen recording is started using MediaRecorder. I think webrtc is not streaming audio to receiver end when media recorder is started using microphone. Error AudioRecord: start() status -38 2020-06-25 13:37:18.948 3276-5257/com.obs.booking E/WebRtcAudioRecord: WebRtcAudioRecord: Start

Use microphone in webrtc & media recorder simultaneously in Android?

元气小坏坏 提交于 2020-08-17 10:06:33
问题 I am using webrtc for video calling in android. I am simultaneously screen recording after call is connected in sender end. I am getting this error log in sender end. Receiver end voice is not hearing when screen recording is started using MediaRecorder. I think webrtc is not streaming audio to receiver end when media recorder is started using microphone. Error AudioRecord: start() status -38 2020-06-25 13:37:18.948 3276-5257/com.obs.booking E/WebRtcAudioRecord: WebRtcAudioRecord: Start

Use microphone in webrtc & media recorder simultaneously in Android?

丶灬走出姿态 提交于 2020-08-17 10:06:31
问题 I am using webrtc for video calling in android. I am simultaneously screen recording after call is connected in sender end. I am getting this error log in sender end. Receiver end voice is not hearing when screen recording is started using MediaRecorder. I think webrtc is not streaming audio to receiver end when media recorder is started using microphone. Error AudioRecord: start() status -38 2020-06-25 13:37:18.948 3276-5257/com.obs.booking E/WebRtcAudioRecord: WebRtcAudioRecord: Start

MediaRecorder Crashing

邮差的信 提交于 2020-08-10 19:20:28
问题 MediaRecorder is crashing my app when I set the output file to a custom directory. If I set it to Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC) , it works completely fine. My Code: recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setAudioEncodingBitRate(16*44100); recorder.setAudioSamplingRate

MediaRecorder Crashing

Deadly 提交于 2020-08-10 19:20:22
问题 MediaRecorder is crashing my app when I set the output file to a custom directory. If I set it to Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC) , it works completely fine. My Code: recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setAudioEncodingBitRate(16*44100); recorder.setAudioSamplingRate

How do you combine many audio tracks into one for mediaRecorder API?

无人久伴 提交于 2020-08-07 05:43:49
问题 I want to make a recording where, I get multiple audio tracks from different mediaStream objects (some of them, remote). Use the getAudioTracks () method and add them to a mediaStream object using addTrack (). At the moment of passing this last object as a parameter for mediaRecorder I realize that it only records the audio track located in position [0]. That gives me to understand that mediaRecorder is capable of recording a track by type, is there any way to join these tracks into one to

How do you combine many audio tracks into one for mediaRecorder API?

大兔子大兔子 提交于 2020-08-07 05:43:11
问题 I want to make a recording where, I get multiple audio tracks from different mediaStream objects (some of them, remote). Use the getAudioTracks () method and add them to a mediaStream object using addTrack (). At the moment of passing this last object as a parameter for mediaRecorder I realize that it only records the audio track located in position [0]. That gives me to understand that mediaRecorder is capable of recording a track by type, is there any way to join these tracks into one to

Android - mute microphone while recording video

一个人想着一个人 提交于 2020-08-02 06:33:29
问题 I'm recording a video with the camera, using the MediaRecorder class, after following a tutorial similiar to this http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1375&recipeFrom=ViewTOC And I want while recording, to be able to mute / unmute the microphone. How's that possible? I'm setting the audio source at start mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); But

Android - mute microphone while recording video

可紊 提交于 2020-08-02 06:33:05
问题 I'm recording a video with the camera, using the MediaRecorder class, after following a tutorial similiar to this http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1375&recipeFrom=ViewTOC And I want while recording, to be able to mute / unmute the microphone. How's that possible? I'm setting the audio source at start mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); But

Webm file could not play when MediaRecorder on Chrome does not provide the cluster?

ぃ、小莉子 提交于 2020-06-29 05:15:13
问题 Background : I need to play each webm file individually which are created by MediaRecorder According to Brad’s suggestion, we need to split the data on the cluster element 0x1F43B675 , and prepend everything before the first cluster to a later cluster I have splitted the data on cluster instances, and made a webm file with header(data before first cluster) and splitted data. For this what I am doing inside the ondataavailable of MediaRecorder API, // below statements would be executed from