I want to develop an Android app that plays music from Last.FM API.
But I can’t find methods that response with mp3 file. Also in Last.FM API documentation I couldn’t find the answer! I can retrieve only track/artist/charts and etc. But I need track media file…to play selected track.
I need to play music without user authentication is it possible?
Does someone know how I can retrieve Last.FM song to play (which method will allow to to it and give me the media file? Or maybe there is some other solution, maybe documentation/example?)
lastfm does not provide media file that contain .mp3 file
Related
I am implementing automatic call response application in android.In my application the call is respond by the audio file which is recorded by user and that file will play when incoming call is answered automatically by program.I have searched for it to know how to do this but all are saying that this is not possible in android to play audio file during call.So, I want to know what are the alternatives that can be used for doing the same thing.
According to android official docs, it is not possible to play audio while a call.
See the docs here :https://developer.android.com/guide/topics/media/mediaplayer.html
Note: You can play back the audio data only to the standard output
device. Currently, that is the mobile device speaker or a Bluetooth
headset. You cannot play sound files in the conversation audio during
a call.
As an alternative you can use Twilio : https://www.ipragmatech.com/play-audio-file-android-call-using-twilio/
I've been looking around for quite some time to find a simple solution to the problem I am having.
Using Java, I'm trying to find a simple way to play the audio from a given YouTube URL to a selected audio mixer.
Looking around I see a few approaches, but they all appear to be missing an important aspect of what I'm looking for in one way or another
For example, using JavaFX or the JWebBrowser (in the DJ Native Swing library) both do not allow changing the audio output mixer, and the JavaFX browser no longer plays Youtube videos anyway.
I'd love to use the Java Sound API, as that allows audio mixer selection, but I don't really want to have to download the video, convert to wav, then play it. Using Java Sound is ideal if there is someway to steam the YouTube video audio to this API.
If you have any relatively straightforward way to play audio from a streamed YouTube video to a selectable audio device, please let me know.
I am developing a musical piano app for android, in this app i want to record sound which user play by clicking piano buttons. I am using soundpool to play piano sounds. now for recording android gave us two api's MediaRecorder and AudioRecorder. but for both we have to set MediaRecorder.AudioSource. i didn't want to record sounds from mic because user sound can be included and more important sound quality decrease in recording. then i try to read bytes of that resource file which is played on clicking piano app. and when user click again and again then bytes will be together in global byte array. but when i play global byte array then this play only one resource file and one time only.
More important thing is i am new to android development. kindly guide me.
Although i did not find answer of my question, but now i am using technique for recording aspects which i want to share with all of you. Above function which i try to use is totally wrong option when you are trying to save music created by your app at run time. now for my first version i just saving the clicks of piano buttons along with system time in an array. now when i play that clicks it will play same sound as user try to record. i save these notes in database for further reuse by users.although this is not solution because these notes will be played in our app only, but this is good feature which we can add in our app. when i solve the correct solution, i will share with you guys
I am an Android developer. I've developed a media player that can play both local and streaming videos. But there is a problem. When I click a local media in the gallery how can I configure it to be played with my player? At least, there should be a list of media players including mine one and I should be able to choose it from this list. After succeeding this, I want to open rtsp protocoled files with my player as default. How can I do this? Waiting for your help.
What you are looking for is called an Intent Filter. Specifically, you want to set up an intent filter on the type of media you are playing, a data type intent filter. There is more information on this in the Android SDK.
Is there any way to read the currently playing song title/artist (id3 tags) in walkman on sony ericsson (w series) phone?
you can get information of currently playing song by the using of player MetaDataControl class.
with the help of this u can find information like title,album,total time,content type etc....
The Java ME API for playing MP3s doesn't tell you any metadata about the currently playing song. But if you know which file is playing, you can probably access the file directly, read out the first bit, and parse the ID3 info out of that. A quick Google search turns up several Java SE ID3 reading libraries. It's probably possible to do it in Java ME as well.
There's no way your J2ME app could figure out what song is currently being played in the phone's native player application.