Audio Video Playing together in android - android

I have mute video file and separate audio file for same video. How can I play video with separate audio in android? I have tried using VideoView but unable to play audio separately. can anyone help in this!!

Before you start everything running, first you prepare both video and audio. When both of them are prepared only after that you can push the Start button.. and they should be synchronized ( if you recorded the audio part at the same time you started the video part)

Related

In surface view audio plays before video starts

Surfaceview audio problem. The audio plays before the video starts. therefore two audio sounds is heard in the video.
Any suggestion for this problem
thanks in advance..

ExoPlayer audio starts before video

We are having problems about the player.
We only play mp4 files.
When there is low internet connection, audio starts before the video and the video starts playing after 2-3 seconds. There is no synchronization problem meaning when video appears the audio and video synchronized. But there is a latency with the video.
What can we do about this?

Android media playback - stop audio output completely?

I have an app that plays video files with no audio. I'm using the mediaplayer function. I want to have the videos play, but not output anything to audio, as there is no audio tracks. However, Android ducks all other audio output (music, for example) when my app is running. Is there a way to use mediaplayer and completely remove my app from audio streams?
I've reviewed Google's Managing Audio Focus article, and I can't devise a way to do so. I just want to use mediaplayer for the video, and completely forget about audio.
Is there a different function I have to call in mediaPlayer.setAudioStreamType?
you can mute all the audio streams using the below code snippet
AudioManager am = (AudioManager)NextVideoPlayer.this.getSystemService(Context.AUDIO_SERVICE);
am.setStreamMute(AudioManager.STREAM_MUSIC, true);

Playing 2 audio simultaneously

I'm trying to play two audio simultaneously, one of the audio plays background music, while other player plays an audio , both audios are in raw folder. Please any pointer are much appreciated .
Things which i have tried,
*) Create two media player and play the audios in separate media player instances.
*) Playing in separate thread(handler/asynchtask) ,I faced issues when i'm trying to change/cancel/stop the audio.
*) Soundpool is not suitable since the audio are of large size.

How can play recording file while recording progress in android audio recorder

I want to play the audio recorder file while recording progress.
OR
Any other way to play the sound while recording
You are getting echo because you are playing the audio through main speaker while recording.
Try to listening to the audio thru headphone while recording thru built in mic.
Also let me know the changes you made to accomplish the main task.

Categories

Resources