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
engine invokes the Oncompletion.oncompletion () callback method provided by the client programmer. Can be set by calling the Mediaplayer.setoncompletionlistener (Oncompletionlistener) method. The internal playback engine once called the Oncompletion.oncompletion () callback method, indicating that the MediaPlayer object entered the playbackcompleted state. 9.3) when in playbackcompleted state, you can call the start () method again to let the MediaPlayer object enter the started state again.
[Android Basics] multimedia programming section, android multimedia
I. Use MediaPlayer
1) how to obtain a MediaPlayer instance:You can use the new method directly:MediaPlayer mp = new MediaPlayer ();You can also use the create method, such:MediaPlayer mp = MediaPlayer. create (this, R. raw. test); // you do not need to
()Resets the MediaPlayer toits uninitialized state.void Seekto (int msec)seeks to specified timeposition.void Setaudiostreamtype (Intstreamtype)Sets the audio stream typefor this MediaPlayer.void Setdatasource (Stringpath)Sets the data source (File-path or http/rtsp URL) to use.Voidsetdisplay (Surfaceholder SH)Sets the Surfaceholder touse for displaying the video portion of the media.void SetVolume (Floatleftvolume, float rightvolume)Sets the volume on Thisplayer.void Start ()Starts or Resumesp
with Libmedia between processes
Part of the realization of multimedia
PacketVideo's opencore is used in the Android system as a multimedia part, inheriting the interface defined in the Media Library, the core of which is the playback and recording of the medium, which is implemented by Pvplayer and Pvauthor, respectively.
The ove
Hello, good evening, everyone finally got together again. In the past few days, I have been busy with a small project called encrypted notepad. Although it has not been improved yet, but I really miss you, so I 'd like to share with you the next new knowledge!
Let's talk about Android multimedia in this article today. I think it must be something that everyone is very interested in. Isn't it too impatient?
The Android system can record and play a variety of different forms of local and streaming multimedia files. The Android multimedia system provides a very good platform for the development and application of multimedia for Android
, mediarecorder, mediascanner, and other interfaces to the upper layer.Android. Meida. * is implemented by calling the libmedia. So interface through libmedia_jni.so.It should also be noted that the mediaplayerinterface. h header file defines the mediaplayerUnderlying interface. It mainly defines the following classes:Mediaplayerbase: the abstract base class of mediaplayerinterface, which includes audio output,Basic interfaces for video output and playback control.Mediaplayerinterface and mediap
Please support the original, respect for the original, reproduced please indicate the source: Http://blog.csdn.net/kangweijian (from Kangweijian's CSDN blog)The main business of Android multimedia applications
Music Player
Video Player
Camera
Sound Recorder
Videocamera
Media Metadate
M
This article analyzes how mediaplay calls opencore In the android multimedia framework from the perspective of code. I. Summary:
For the android Multimedia Framework, Google has implemented stagefright in Android 2.2, but opencore is retained;
In the new version 2.3, openc
In Android, graphic interfaces and multimedia operations are easy to implement. In addition, most mobile phone users modify the system based on these features. We can use the source code of the Android multimedia framework introduced in this article to analyze the basic knowledge in this aspect.
The
Today, any smart phone can play audio. Of course, android-based devices are no exception. They allow you to create music players, audio books, podcasts, or any other applications that play around audio. In this article, we will discuss Android's functions in terms of format and decoder support, as well as several different playing programs.
Audio Playback
Android
Android is easy to implement for graphical interface and multimedia related operations. And for most mobile phone users, they are mainly based on these aspects of the function to modify the system. We can through the introduction of the Android Multimedia framework of the source code interpretation, to specifically ana
VLC-based Android multimedia solution, vlcandroid
Some time ago, the project needed to play videos, streaming media, and view and monitor in Android, and then studied the Android multimedia solution.
After searching, there are roughly the following types:
from Java layer to C + + layer class relationship and prepare and other processes" Introduced to the player is actually the C/s mode overall, IMediaPlayerClient.h function is to describe a MediaPlayer client interface.
Finally summed up: mediaplayer.h function is the external (JNI layer) interface class, it is the most important to define a MediaPlayer class (C + + layer), we introduced in Android_media_mediaplayer.cpp media/ Mediaplayer.h,imedia
Disclaimer: The book "Secrets of Android Application Development", which records the logs of the book, references the relevant code and summary, and has no commercial use, it is completely a record of self-learning, and many problems will inevitably occur in learning just now. If there are any mistakes, please criticize them a lot.
Today, I started to learn about multimedia operations, because part of our
This article analyzes how mediaplay calls opencore In the android multimedia framework from the perspective of code.
SummaryFor the android Multimedia Framework, Google has implemented stagefright in Android 2.2, but opencore is retained;In the new version 2.3, opencore was
Android multimedia mainly includes: the platform consists of the operating system, middleware, user interface and application software. Many mobile phone manufacturers are eager to use this operating system, after all, this operating system has a place in the market.
Many companies, such as HTC, Motorola, Sony Ericsson, and Samsung, have launched Android-based
1. FFMPEG for x86Http://gitorious.org /~ Olvaffe/FFMPEG-android does not implement the android media interface. The standard process is to output decoded YUV video data through the surface, and audiotrack outputs decoded audio PCM data. Simply put, the code on the code tree cannot be used for multimedia playback. However, I personally think FFmpeg is not 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.