Good article reproduced, the source of http://blog.csdn.net/fgwf1/archive/2011/01/05/6118686.aspx
To play a full-format multimedia file on the Android platform, we need to make a multimedia player by ourselves. Android's opencore system has fewer decoding formats, and only supportsMP4 and Ogg, and the structure is not well understood. It is too difficult to add other decoding methods. After consideration,
I found a lot of related information on the Internet and felt I didn't want it. I decided to write it myself.
Source code has been put in the resource library, welcome to download: http://download.csdn.net/detail/luozhi3527/5353003
The program uses surface + mediaplayer to customize the console. Can Play local and online videos.
The main implementation code is as follows:
Package COM. xluo. mediaplayertest; import Java. util. timer; import Java. util. timertask; import
MvcplayerI tried to use the MVC pattern on Android to develop a music player.GitHub Address: Https://github.com/skyhacker2/MVCPlayer What is MVCFrom Wikipedia
Controller controllers-responsible for forwarding requests and processing requests.
Views View-Interface designer for graphical interface design.
Model-Programmer to write programs should have the function (implementation algorithm, etc.), database experts for data Management a
Starting from this article, the implementation of a music player is described in detail, as well as the ability to get the latest recommended songs and download songs from the network parsing data.Features are described below:1. Get the local song list and play the song function.2, using hardware acceleration sensor, shake the phone to achieve the function of switching songs3. Use Jsoup to parse webpage data, get the song list from the network, and re
Android audio and video went deep into 1949th using ijkplayer as a video player (with source code download) and androiw.player
Project addressHttps://github.com/979451341/MyijkplayerSome time ago, I thought it was difficult to make FFmpeg a video player. Although there was no problem in playing the video, I still needed to drag the progress bar to set the playing
Android error MediaPlayer usage Media Player called in state *
When using Media Player, let's take a look at several issues.
The usage will not be mentioned. It is best to refer to this figure of mediaPlayer when using it.
The first error is Media Player called in state 8.
This is because there is no prepare before
Android error-MediaPlayer usage: Media Player called in state *, androidmediaplayer
When using Media Player, let's take a look at several issues.
The usage will not be mentioned. It is best to refer to this figure of mediaPlayer when using it.
The first error is Media Player called in state 8.
This is because there
We want to develop our own media player on Android. The first thing we want to think of is to use FFMPEG for implementation. FFmpeg is a cross-platform failover function. We can call the APIS provided by FFMPEG to complete the process. In addition, FFMPEG provides a small program ffplay, which itself is a media player, so we plan to use ffplay as the program's ba
PrefaceIn order to ensure the progress of each Monday article, and because the new Vitamio version is not released, it is decided to delay some local playback functions (, video time, size, etc.), skip the section that directly writes the online playback part. From the introduction of Vitamio, we can see that it supports multiple network protocols such as http and m3u8. This chapter will compile an example of playing Youku videos.
StatementWelcome to repost, but please keep the original source o
effects cannot be captured .. That is, rotate a circle .. Nothing nice .. ...
Paste the code of the activity and service in the playlist ~~ These two are critical ~~
Package COM. musicplayer; import android. app. activity; import android. content. intent; import android. OS. bundle; import android. view. menu; imp
VLC player is an excellent open source player that can play MPEG-1, MPEG-2, MPEG-4, DivX, DVD/VCD, digital satellite channels, digital earth TV channel (Digital terrestial television channels) play online videos through IPv4 and IPv6 networks on many job platforms. This software development project was initiated by French students. Participants came from all over the world and designed multi-platform suppor
With media Player, there are a few questions, rememberUsage is not said, when using the best reference to the MediaPlayer of this pictureThe first error is media Player called in State 8This is because there was no prepare before calling start, because I used theMediaPlayer = mediaplayer.create (context, r.raw.notice);To initialize the player, this interface illu
Recently, to do an Android music player, is the task of the Senior school in the lab, I developed on the eclipse, because there is no basis for Android, so it is difficult to do.The first is the difficulty of the layoutNot familiar with control properties in 1.layout2. Want to do a music list do not know to use the ListView control, the Internet also found a lot
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
( illegalstateexception e) {//TODO auto-generated catch Blocke.printstacktrace ();}} Onpreparedlistener Preparedlistener = new Onpreparedlistener () {@Overridepublic void onprepared (MediaPlayer MP) { Mediaplayer.start ();}};A look to understand, just at the beginning I finished prepare went directly to start, but this time may prepare has not succeeded, so reported the above error.Then you encounter a prepareasync called in State 8This workaround adds a line of code to the previous one, ensuri
The Android system provides the MediaPlayer control, which enables you to play audio.
From learning Android, when I was watching the tutorial, I thought that I would like to make a music player myself, because a complete music player has many functions, it involves many aspects of knowledge, which can help us better le
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
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 doing it, or receiving a lot of goods. I fini
Android Development-mediaplayer Simple music playerFunction Introduction
Implement a simple player, similar to the NetEase cloud music format, features include:
Play, pause, stop, exit function;
Background playback function;
Progress bar shows playback progress, drag progress bar changes the progress function;
When playing the picture rotation, display the current play
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.