Recently, I am working on an Android phone to obtain the music information of a third-party music player. At first, it was a headache. It was too difficult to collect third-party information. I read the blog post about how to listen to the music playing information of the system, it is found that the broadcast will be sent when the next music is played, and the broadcast will contain the next piece of infor
Objective
Create a complete available Android player has many features and details to be completed, but also involves a variety of knowledge and content, this chapter will be combined with fragment, Viewpager to build the main player interface, and achieve local playback basic functions. Series of articles to provide screenshots, code description, source downloa
resources.Next, if you need to play a music file, you can encapsulate the playback logic by using the player MediaPlayerthat comes with Android: //Start Public voidStart (String path) {Try{mediaplayer.reset (); Mediaplayer.setdatasource (path); Mediaplayer.prepare (); Mediaplayer.start (); Mediautils.currentstate=Constants.play_start; } Catch(IOException e) {e.prints
The player features are as follows:
1. Pause, play2. Drag bar implementation, fast forward, rewind3. Sync Lyrics4. Next song, last one.5. Album Image display6. Background playback, notice bar display7. Call, pause, end of call, start playing.The interface is as follows:
When playing, there will be an icon in the notification bar. Paused, Icon disappears
Background playback, will be displayed in the notification bar, click, you can enter the playb
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
Graphical User InterfaceThis article documents the process of implementing my Android simple music player, and (a) describes how to build a front-end page of a music player. First of all, look at the end of the interface is this (the interface is a bit rude)The music file list is read from the SD card.First we create the music player's Gui,diagram in layout as sh
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
These two days need to do audio and video playback related things, so the current Android to find the decoder library. Android's own decoder library is not fully supported, so many Third-party players are ffmpeg, most of them are used as decoding libraries. I also got a video player in 11 years, and it was based on FFmpeg. At that time on the internet about the Android
The player functions are as follows:
1. Pause and play2. Implement dragging, fast forward, and fast return3. Synchronization of lyrics4. Next song, last song.5. album Image Display6. Background playback. The notification bar is displayed.7. Call, pause, stop, and start playing.The interface is as follows:
During playback, an icon is displayed in the notification bar. Pause, icon disappears
When playing in the background, it will be displayed in the n
??Android video player The left edge of the screen with your finger swipe up and down brightness adjust dimming principle implementation (2): Subsequent improvementsAppendix 1 Although it is possible to adjust the brightness of the left half of the screen with the swipe/slide of the finger, there is an imperfect place: when the finger is left and right in the left side of the screen, the same is true for th
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
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 will automatically play the song and save it to
Introduction and use of Android universal player decoding framework Vitamio, androidvitamio
I. Introduction
Vitamio can smoothly play videos in common formats such as 720P or even 1080P hd mkv, FLV, MP4, MOV, TS, and RMVB, and supports MMS, RTSP, RTMP, and, HLS (m3u8) and other common video streaming protocols, including on-demand and live streaming.
Using the Vitamio framework is mainly because it can play
With two days of free time, research has written a class Win8-style Android music player that implements most of the basic functions. Here's a look at the specific description:Basic implementation Features:Note: Android system version must be above 2.2, to ensure that the phone installed SD card (some icons to QQ music and Baidu Music)Interface composition:Welcom
, clean interface. 2. Interaction is very novel, directly press and hold any position voice song, left slide pause, right slide continue to play, slide is the next song, slide is to share, double-click can see the lyrics, shake can input want to listen to the song, auxiliary voice may not be allowed to change the English meaning, can also be timed.feel the need to improve: 1. Speech recognition is not accurate and is often wrong. 2. The cover quality is too poor. 3. Slide down the next song or i
In the search local video section of Android local video player development, we can search for a local video and display the image, title, and duration of each video, of course, if you need to add other methods such as the Video length and width, you can use the method in the Video class. Since we have obtained the Video, the next step is to decode the Video. I use ffmpeg to decode the Video, so this is the
In the local video section of the Android local video player development, we were able to search for local video and display pictures, titles, and lengths of each video, and of course, if you needed to add other lengths and widths of video, for example, you could use the video class method, and now that we get the videos, So next is decoding the video, decoding the video I'm using FFmpeg, so this is the FFm
mediaplayer (); button = (button) V; try {Switch (v. GETID () {// playback case R. id. btnplay: If (! Mediaplayer. isplaying () {play ();} break; // pause case R. id. btnpause: // if the video is being played, press the button to pause. and the text on the button is displayed as "Pause continue); // set the button text} else {// if it is paused, press the button to continue playing // play ();} break; // stop case R. id. btnstop: If (mediaplayer. isplaying () {mediaplayer. stop ();} break; // r
To play an audio file, you can use the built-in Music function to play the audio file) "function of the application-that is, use the built-in or installed music player to play the specified audio file.
This example is relatively simple. The source code is provided below:
Layout file activity_main:
Code File MainActivity:
Package com. mutimediademo3audio; import java. io. file; import android
In the previous chapter, Android Local Video Player Development-SDL compilation was used to compile the SDL support library. At that time, we used 2.0, but some apis were changed, therefore, we use the sdl1.3 library among the following users. I will upload the source code and the compiled library to this library, next, we use FFMPEG to decode the video frames in the video file and Use SDL to display them a
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.