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
Android Video Player series (II)-VideoView and androidvideoview
Recently, I have been learning video-related knowledge. Now I am working step by step. If you have the same requirements, you can follow the steps to facilitate learning.
The previous section mentioned that you can use a system player and a browser to play local and online videos, but this is not eno
If you implement an audio file playback, the simplest way to provide the ability to play audio files in your application is to take advantage of the features of the built-in "music" app-even if you use the system's own or installed music player to play the specified audio file.This example is relatively simple, the following directly gives the source code:Layout file Activity_main:code file Mainactivity: Package Com.mutimediademo3audio;import Java.io
Android sets a song in the music player as a ringtone, And the setting does not work.AudioProfile, scene mode, multi-card ringtone settingThe system enables Multi_ringtone_support. Choose "Music"> "song list"> "Long-press a song" and choose "set as the ringtone". The message is displayed, but the set scene mode is displayed. The default ringtone is displayed. After a call, the ringtone is also the default r
Oscilloscope is in the university when the teacher taught, but out of work has not been used, and gradually forget, and now learn again. Look at the effect chart:
Here is a custom histogram, and then there is a button, click the button, where the pillars will keep moving, similar to the music player in the oscilloscope beat.
Similar to the previous custom view, rewrite the onsizechange () method and the OnDraw () methodLet's make a list of the va
The implementation of the idea of a few lines of code can be done, put a button on the interface or with the play icon ImageView, click on the event to call the local player to play.Uri uri = uri.parse ("http://218.200.69.66:8302/upload/Media/20150327/43bfda1b-7280-469c-a83b-82fa311c79d7.m4v"); /Call the system's own player to play streaming video Intent intent = new Intent (Intent.action_view); LOG.V ("uri
[The Music marks for determining the sound level are called music marks. There are three kinds of music marks: G, F, and C )]
--- Basic five-line spectrum tutorial
Jamendo's gesture operation is used to control the playing of a song. There are four gestures corresponding to play, pause, last and next. This article mainly describes how to implement the gesture operation. As for the media player, I will not elaborate on it in subsequent articles.
1.
Android Universal player0.eclipse Direct import can be eaten (pro, there are two library engineering OH) 1. Vitamio-based Universal player (own Baidu Kazakhstan) 2. Scan local video, get the first frame of each video, and display 3. Gesture control volume, brightness 4. The first frame of the captured picture is not processed, may be memory overflow, please handle it yourself 5. Nice drop-down refresh contr
A flash video player is required.
The Flash plug-in can be installed only after android2.2 and the flash video can be played in webview. The initial idea is to set a full-screen webview for the activity and then input a flash Address. Later, I found some problems and made it clear.
1. directly call webview. loadurl and input the flash Address. On my custom machine, a white screen is sometimes displayed (no sound or image ).
2. Package the flash Addres
Synchronize the lyrics of the android mobile music player
I recently learned a lot from a music player on an android phone, such as Fragment and ActionBar. Here I will first introduce the implementation of lyrics synchronization.
The idea of implementing lyrics synchronization is simple: Get the time and the content of
to understand how to get the value. If you do not understand, it's okay, I have an article in Hon Yang is more specific. Recommend to you: http://blog.csdn.net/lmj623565791/article/details/45022631, still waiting for what. Poke it in and take you to fly. 2. Define your own controlsSource code 1:Source Code 2:PS: Two copies of the above self-defined source code. In fact you look carefully. The difference is not very big, changed a place, the change of place, in fact, in our current project encou
(Global.bt_play_play = = False) {Play.setbackgroundresource (r.drawable.xml_player_play); Global.bt_play_play = true;}The Global.bt_play_play is a boolean static variable, which, by default, is true, which is used to determine whether a pattern is currently a divine horse or not.It looks like there's a problem with the wood, but it works:Just run up:After clicking:Click once more:Why is it that there is an oval circle in it? And the picture changes, the previous picture did not disappear, coinc
android.content.Intent.ACTION_ The view intent data is set to the URI of an audio file, * and its MIME type is established so that Android can pick the appropriate application for playback. */intent Intent = new Intent (Android.content.Intent.ACTION_VIEW); File sdcard = Environment.getexternalstoragedirectory (); File AudioFile = new file (Sdcard.getpath () + "/good.mp3"), and/or place a file name in the SD card that is called the good mp3. Intent.se
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.net/detail/sinat_23092639/8933995 Copyright NO
Android app-simple and beautiful music players add phone monitors
In September 2nd, the simplified and beautiful music players started Stage 1
Stage 1 has completed the following functions:
1. automatically display the music list
2. Click the list to play the music.
3. Long press List dialog box
4. Pause music
5. Last music
6. Next music
7. automatically play the next song
8. Single Loop
9. All Loops
10. Random playback
In
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 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.