How to play just sound from mp4 file in android? - android

Can we play just audio from mp4 file ?
I don't want to view video so that i can play mp4 file in background in live wallpaper .
I tried to play mp4 file by using MediaPlayer but sound is not playing .
Any hint ?

check this link it shows something ..
(1). Adding-Background-Music-to-Android-App
(2). play-foreground-and-background-music
and to play audio with video you can go for this ..
(3). how-play-video-and-audio-android

Related

How to stream mp4 vedio in android

How to stream .mp4 video in android, video is from backed server. By implementing all the solution showing a message can't play this video
My suggestion is to use Exoplayer which is google's video default player.
here is a very basic, working example of exoplayer 2.8.4 to play livestream or .mp4 files.
https://github.com/ayalus/ExoPlayer-2-Example

No audio/sound while playing .mkv movie on VideView

I'm working on android video player using VideoView. It plays all formats songs like mp4, 3gp and mkv. But when I play a movie having .mkv extension its still working fine but I can't hear its sound. Can you guys please help me like how to fix the problem for mkv files to pitch its sound?

Audio Video Playing together in 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)

Android: Live Stream Video URL Player

We are trying to develop an app for Android where you can play a live streaming URL. I tried several approaches using the MediaPlayer and StreamPlayer... but no luck with the URL playing.
I can of cause play a static MP4 or MP3 file using the URL (hosted on a server) but when I try to play a stream URL it doesn't play or give an error.
Any thoughts?
Mp3 stream works well on Mediaplayer from Android 2.2 and above. If you want to play the Content below 2.2 then its better to use local proxy server implementation. check Npr . Which uses the same approach.
If you want to play wma audio you should convert that into PCM and play it. check aacplayer. In aacplayer project he gets wma content from mms:// stream and plays it . You can edit that to play only wma content. But i haven't tried playing any wmv videos.

Can Android v2.3 Play MP4 files?

I have an MP4 file that I play with the MediaPlayer example in API demos on the emulator. Only the sound is played. No video. Why would this be and how do i get it to play?
BTW: .3gp files to play both audio and video in the same example.
Thanks!
The supported media formats are listed here: http://developer.android.com/guide/appendix/media-formats.html . Make sure your mp4 file uses the right format (H.264 AVC or H.263).

Categories

Resources