During my research in the possibilities of playing audio and video from app, I found several ways of playing media. The simplest one is to use external player. It was described in the post “Android: how to play audio and video from app“. Here are some examples how to play media in app.
Tag: mp3
Android pcm file conversion to mp3
I was looking for a solution how to convert raw audio file, generated on Android, to mp3. I did found a solution for it somewhere in Internet (unfortunately, lost the link). $ lame -r -m m -s 8 -x XXXX.pcm XXXX.mp3 -r – input is raw pcm -m (j)oint, (s)imple, (f)orce, (d)dual-mono, (m)ono default is… Continue reading Android pcm file conversion to mp3
Android: how to play audio and video from app
I was looking for a way how to play video and audio streams from Internet from my app. There are several ways how to do it and some of them worked for me. 1. Play in inner VideoView. The solution I found here how to play video from url String path=”http://www.ted.com/talks/download/video/8584/talk/761″; String path1=”http://commonsware.com/misc/test2.3gp”; VideoView videoView… Continue reading Android: how to play audio and video from app