I'm trying to implement a small mp3 player on android. So far so good, but I cant implement the following feature:
When playback of the file starts, check the file, get the artwork and display it.
(the artwork is embedded)
I've seen several libraries which claim to be capable of doing so, but I did not manage to implement it. (jaudiotagger, jid3)
Did somebody ever implement this and can show me some code?
Thank, Nico
Android doesn't support the standard ImageIO libraries which is why this part of jaudiotagger doesnt work with Android, there is an outstanding issue on jaudiotagger to resolve this issue for android.
Related
I will build a simple program that
Can play video file (.mp4) in my program.
Can extract the video, so that I can get the title, length, subtitle, and the audio, etc.
What is the library in Java that I should use?
I have googled, but I still can not find the best library. By the way, I have tried to download xuggler, but I can not find any file.exe that can install this library.
Please be kind because I never make a code regarding video player and video extractor.
For playing audio and video in your java program use Java Media Framework. It contains jar files that will provide you classes to play and handle audio and video files.
Use this tutorial for understanding of JMF.
I have successed to use xuggler in java. Xuggler website is suck because they don't keep good installer in their website. Every beginner who use xuggler must be have some trouble like me.
For every one who want to use Xuggler, you can follow this website
http://www.benfarahmand.com/2012/11/tutorial-using-xuggler-in-processing.html
the link to download file.exe xuggler is here: https://www.dropbox.com/s/oh7zcyilibzfoyb/xuggle-xuggler.5.1.0-win64-setup.exe
Thank you :)
I've read somewhere that it isn't still possible to record Audio while using the Camera function on Android phones. But this source was kind of outdated.
I've also read, that this is possible on Iphone.
But I need this function for Android to create an App.
Can anybody say more to that?
Is there a possibility on Android to archive that in an Application?
I don't see why not. They don't share the same hardware. Even if not, you could easily fake it by recording video (which also records sound) and just taking the first still image of the video as your photo.
So I am building this music app which so far just scans a specific folder inside the SD card. This returns the paths and then plays them.
A few hours ago I got informed that there is like a media file database in the android system so
I am wondering if this media file database is there and if I can in some way get it to return all audio files with a path and then play them
I am wondering if there is any way I can get album cover and artist information from this database also
I have been reseraching on MediaStore and MediaScan connection but i can't find any thing so I need some sample code please.
You did say please... so maybe something like the following links. They might not have everything you want, but they all contain information that is relevant to your project. When searching or trying to find a solution, don't give up when you can't find exactly what you need. As long as something has some relevant information, take it and use it. It's how developers/pirates work.
http://davanum.wordpress.com/2007/12/29/android-videomusic-player-sample-from-local-disk-as-well-as-remote-urls/
or
http://davanum.wordpress.com/2009/12/04/android-%E2%80%93-videomusic-player-sample-take-2/
Or even on a SO page
Android mp3 player
You might want to check the references as well:
http://developer.android.com/guide/topics/media/index.html
I posted this question over at anddev.org and thougt here was a good place to post this too because this site has a bigger usergroup.
I will make it shorter here: How can i play .xm or .mod files on the android platform? Is there a good android compatible library for the playback? I cant seem to find one. I dont search a player like Extended Multimedia Player, just a library.
I know i could convert all the modules to mp3 but I don't like that. It would blow up the app in filesize.
Regards.
AndEngine is probably a good way to go.
Or if you just want to add mod/xm playing to your own code base, check out my page:
building libmodplug for android
there are a few caveats (using older Android NDK, building version 0.8.6 of libmodplug, could use better thread handling) but basically it works. There's an example apk with source.
Also recently added a new app using libmodplug with soundtracks from two of my games - 44 songs in 1.2MB :)
PGsoundtracks
The 2D game engine AndEngine has an extension that can play .mod files, it might suit your needs:
http://code.google.com/p/andenginemodplayerextension/
download xmp player from Android Market. That is the module Andengine extensions are using. You don't need Andengine nor their extensions for that.
I have an audio file in .3gp format on my Android device which I wish
to upload to YouTube. I know that YouTube is a video upload site and
that I need to convert this sound file to video.
I just want an image to display all the time the audio is playing.
Google tells me there are number of tools that can help me. But I want
to do this via java code from my Android device.
Please help.
Thanks.
There are tools such as FFMPEG available for free that allow you to, essentially, mix and convert heterogenous streams. That is you can add a bitmap to a video, create video from slide shows and then add sound etc. (See a related question I asked here).
These programs can be executed from within java applications by making Runtime.exec(..) calls.
Sun has an example for stitching multiple JPEGs together into a movie, you can find it here. You should be able to take this example, (its fairly robust), and add what you need to it.
I recommend looking into the Java Media Framework (FAQ)
You can find a vast collection of sample applets/code at the Sun Solutions page. You can find the API on this page. I do hope this is compatible on the Android platform, as I haven't had any personal experience developing for it. But it might be a good place to start.