resource.
The following is an example of how to use a locally available URI in the system for playback:
Uri myuri =...; // initialize URI here
Mediaplayer = new mediaplayer ();
Mediaplayer. setaudiostreamtype (audiomanager. stream_music );
Mediaplayer. setdatasource (getapplicationcontext (), myuri );
Mediaplayer. Prepare ();
Mediaplayer. Start ();
The following is an example of using a remote URL for HTTP stream playback:
String url = "http: // ...
Now many dormitory students use a computer to build a streaming media server, and then use the computer to provide the server IP address, mobile phone mainly connected to this IP address the way to play movies. But this kind of way the service is very simple for the technical personnel, but for the small white user is a difficult problem. If you install the Sunflower Remote control software on the dormitory
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
Document directory
① Use mediarecoder
② Use localsocket
③ Mediarecorder Problems
Http://www.cnblogs.com/skyseraph/archive/2012/03/31/2427593.html
0
This article is only a series of coherence. In fact, mediarecoder has been used in the previous series of blog posts. For details, see the previous Android series blog Android (19)
1 Overview
Use mediarecorder of And
Mediaplayer.ontimedtextlistener this interface and upload it to the Setontimedtextlistener () method.Audio effectsAudioeffect This class now supports additional audio preprocessing types when capturing to audio:As an acoustic echo Canceller (AEC), the Acousticechocanceler class eliminates the effects of signals from remote capture to audio signals.As an automatic gain control (AGC) Automaticgaincontrol, this class automatically recovers the normally
"Streaming media" Android real-time video encoding-h.264 hard-codedSkyseraph APR 4th 2012Email:[email protected].com
1 hard-coded Soft-coded hard-coded : by calling the Android system's own C-Amera recording video, actually calls the underlying HD encoded hardware module, that is, the graphics card, not using the CPU, Fast Soft Coding : Use the CPU to en
Http://www.cnblogs.com/skyseraph/archive/2012/04/04/2431771.html
1 hard Coding
Soft Encoding
Hard Coding: By calling the camera recording video that comes with the Android system, it actually calls the underlying HD encoding hardware module, that is, the video card, which does not use the CPU and is fast.
Soft Encoding: Use the CPU for encoding, such as common C/C ++ code. Generally, the binary files generated by compilation are all slow. For example
"closed" AndroidIn the beginning, Android is really open source, but now you say that the closed source estimates are no one to oppose.Many people say Android, "Google's own site, as closed as Microsoft's website." It is open source, all under the GPL license to open source. "Lock OEM ManufacturerBy using the app's upgrade to close the source, Google's control on the mobile side stems mainly from app group
Android Service is divided into two types:
Local Service: called in the same apk
Remote Service: called by another apk
Remote services must be completed using AIDL.What is AIDL?
AIDL (Android Interface Definition Language) is an IDL Language used to generate code for interprocess communication (IPC) between two pro
connection USB cable will have the option, be sure to choose the MTP (media device) connection way and not use (only charging mode)C, the domestic machine without Google Play, only follow this article to install Google Play (http://blog.sina.com.cn/s/blog_68cff87b0101a96k.html)D, must be the U.S. version of Google Play, need to break wall, you can install fqrouter this software and then open the U.S. version of Google Play.E, Unity
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.