My application record some sound and use standard player to playback it.
I would like to know how to add a custom cover art to the audio files and show it via intent.
It looks like there are two ways to add album art to an MP3. The easiest way is to place an image in the same directory as the audio file, and most media players will assume that it is cover art. Some people suggest calling this file "AlbumArt.jpg".
The other way to do this is to embed the art int the MP3 itself. I don't know how to do this myself, but you might find this article useful.
Related
I have two MP4 audio files and one MP4 video file. I need to combine them to reproduce the video and the two sounds at same time (Parallel, Not concatenate), in order to get an only MP4 file.
For example, I have an MP4 audio file with voice, another with music, and another with video. I need that they play all together like a videoclip.
I have been trying to add several audio tracks to movie with MP4Parser with:
video.addTrack(audioTrack1);
video.addTrack(audioTrack2);
But when I play it, I only can hear one of them. Maybe MP4Parser is working correctly and I didn't understand this functionality, for this cause I need an answer about it.
Is it possible to do this with MP4Parser or I am wrong and it is impossible?
If it is possible, please could you give me a working example code?
Thank you in advance.
How can we make part of single audio file. Just like want to make two Audio files from one Audio file from selected position of Audio file in android. so how is it possible please let me know.
Check this
How to write a Mp3 clipper or cutter in android?
And this
https://code.google.com/p/ringdroid/source/browse/trunk/?r=66#trunk/src/com/ringdroid
Is there any way to get music Image like what built in android media player do .
for example ,open a music , if music has image, media player shows it is image as background .
where can I find that image ?
This is found in the MetaData of the file itself. You should be able to find it pretty easily if you know how to navigate the database content.
http://developer.android.com/reference/android/provider/MediaStore.html
In mp3 Id3 tags. Example here.
I am newish to Android, so please be patient with me! I am building an application in which I need to be able to allow users to record audio and take photographs in order to add entries to the app - entries will consist of multiple audio files and a single image. I need to be able to allow the user to select an entry so that they will be able to view the image and play the audio files.
What would the best way to go about this be? Should I look into storing the image and audio related to that image in a database, or is there a better way of doing this? Any advice/resources would be appreciated!
Thanks,
Daniel
You should store the audio and photos to sd-card as it is designed to save larger files. But if you want to group these audios and images, you can use database for it. Create a simple table which holds entry_id(Group id) with type(Audio,image), name and their file_path on sd-card. In this way you can keep track of your audio and images which are grouped to-gether.
I am trying to make an app that allows me to stream a video from a website and play that video in my app.
However, I would like to play this video from my app and not through youtube or anything else.
So you click a button and a video starts streaming and stays in my app and plays. Also, another quick question here, can I play videos from anywhere?
I think I read that it had to be .mp4 or something but im not sure. How can I tell if it's .mp4 by just looking at it?
If I really want to play a video that isnt .mp4 (or whatever it's supposed to be) is there any way at all that I could possibly play it?
The quickest way is to have a view dedicated to a Flash player which streams the video for you. You can generate the HTML at runtime and pass it into a WebView.
This is probably not what you are looking for because you mention that you want it to stream directly with Android. I thought I would put the suggestion out there though.
Edit:
You would use a WebView. Using the following function:
loadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl);
You pass in a base URL, which in this case can just be file:///android_asset/ and the data is your complete HTML code. etc.
The data would be set like so:
String data = "<html><head></head><body>flash player goes here</body></html>";
You would set the Flash player to occupy the whole screen, so that the size of the player is then determined by the size of your WebView.