Android Implementation MP3 playerBefore the exam, this well-done project has not had time to summarize. Although in the period of doing the project, the use of the various techniques are recorded as a blog, but there should be a general summary and summing up.This is the first large-scale project of its kind, which is the project that the Mars big video last introduced in the first quarter. But I insist on
Learning to develop Android for a year, think about this year's efforts, and indeed harvest a lot. Also found a better job. Today you are ready to share a project that was previously practiced in the beginner stage. Through this project I really found the development of the feeling of Android software, and gradually entered the formal development of Android. This
add some beautiful girls to the background, just add background to the layout file. Here we will focus on logic, if you don't talk about these fancy things, how can you switch from the first activity to the second activity? We need to use our powerful Intent. Intent can implement the conversion of one activity to another. When you click a song, the playing interface needs to know that you are playing the magic horse. A series of Song information needs to be passed to the second interface. This
function, just add a line of code to complete. Private void Play(intCurrentTime) {Try{Mediaplayer.reset ();//Restore the parameters to their original stateMediaplayer.setdatasource (path); Mediaplayer.prepare ();//BufferingMediaplayer.setonpreparedlistener (NewPreparedlistener (currenttime));//Register a listenerINITLRC ();//Update playback statusIntent Intent =NewIntent (Play_statue);//Send the completed signal, update the playback statusIntent.putextra ("Playstatue",true); Sendbroa
Scan local file to load to itemNot limited to apps to music player, other Android works, can also use SdcardsearchtolistOther Android projects can also be used, I have now done a very small demoLater will post, will be in the player, add this function, to achieve just downloaded music, loaded into the playerThis demo s
that was obtained before the activity was bound to the service. whenever the activitybinder.transact (0, data, reply, 0); When invoked, the service invokes the Ontransact method, loads the obtained data into the parcel object reply, and then the entire The IBinder object returns activity. MP3 player This is finished, may be very messy, I hope to help you, source code download Link: http://download.csdn.n
reply,
Int flags) throws RemoteException {
String str = data.readString();
Int currentPosition = mediaPlayer.getCurrentPosition();
Float s = (float)currentPosition/mediaPlayer.getDuration();
If(isPlay)
reply.writeFloat(s);
Return super.onTransact(code, data, reply, flags);
}
Yes, I do. It is the IBinder object that was obtained prior to the activity and service binding. whenever the activitybinder.transact (0, data, reply, 0); The service calls the Ontransact method. Load the acquired
The path to the java siege lion (Android)-MP3, MP4, photography, internationalization, style themes, image movement and scaling, android-mp3
I. MP3 player
View the Android API documenta
Android NDK Development (6)-use open-source LAME to transcode mp3 and androidndk
Reprinted please indicate the source:Http://blog.csdn.net/allen315410/article/details/42456661
In the previous blogs in this column, I talked about some Android NDK development basics, from environment setup to using JNI for mutual calls of Java and C code, in addition, the Demo is s
Android-music player
1. What is Open Core?
Open CoreIt is the core of the Android multimedia framework. It is used for audio, video usage, playback, and other operations on all Android platforms.
2. Specific functions of Open Core
1. multimedia file playback, download, including: 3GPP, MPEG-4, AAC and
decoding and selection components, and supports synchronization between mainstream audio and video decoder and multi-channel media streams.4. User InterfaceMainly provides interaction interfaces between users and playersFFmpeg: it provides a complete solution for recording, conversion, and streaming audio and video.
This article from: http://freewxy.iteye.com/blog/738790
Design of Streaming Media Player Based on
Recently, I added a function for downloading online songs to my own music player. Although I haven't done the downloading function yet, I finally started it. The downloading is done, not far from the target.
The android player supports "download and play". When you click "MP3 download link" in the system browser, it wi
This article is mainly about the architecture of the most important and complex media Player (MediaPlayer) in Android. For Android, a complete and relatively complex system, the implementation of a MediaPlayer function is not a function of its specific features, but a specific feature how to adapt to the Android system
This article will guide you to do a music player, in the process of doing this Android development example, can help you to further understand and master the learned ListView and other components. In order to have a better learning effect, many of the features we manually implement, such as the music play fast forward and rewind.
First of all, appreciate the interface effect after this example is completed
PrefaceAlthough Android has built-in Videoview components and MediaPlayer class to support the development of video player, but the support format, performance, etc. are very limited, here with you to use the free Vitamio to build their own Android Universal player!StatementWelcome reprint, but please keep the original
Android audio and video goes deep into thirteen OpenSL ES to create a music player, which can pause and adjust the volume (with source code download), androidopensl
Project addressHttps://github.com/979451341/OpenSLAudioOpenSL ES is a public audio API developed based on NDK, that is, the underlying C language. It can be used to achieve standardized, high-performance, and low-response-time audio functions.Th
This article describes an online music player. The operations are described in detail to achieve the effect and understand the principles of the player.
Source code:
Layout file:
Activity_audio_httpplayer:
AudioHTTPPLayer. java:
Package com. multimediademo7audiohttpplayer; import android. app. activity; import
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.