<!-- @page { margin: 0.79in } P { margin-bottom: 0.08in } H1 { margin-bottom: 0.08in } H1.western { font-family: "Times New Roman", serif } H1.cjk { font-family: "DejaVu Sans" } H1.ctl { font-family: "Lohit Hindi" } H2 { margin-bottom: 0.08in } H2.ctl { font-family: "Lohit Hindi" } TD P { margin-bottom: 0in } CODE.cjk { font-family: "DejaVu Sans", monospace } A:link { so-language: zxx } -->
工作中使用到所以顺便翻了一下,由于本人水平有限所以以下翻译中不够完善处请包含。
欢迎与我联系指正,谢谢。
package
android.media
提供用于管理音频和视频媒体的接口和类。这个媒体APIs是用于播放并且记录媒体文件。包括音频(例如:播放MP3s或者其他音乐文件,铃声,游戏音效,或者DTMF双音多频声道)以及视频(例如:播放来自于web或者本地的视频流)。
Provides classes that manage various media interfaces in audio and video.
The Media APIs are used to play and, in some cases, record media files. This includes audio (e.g., play MP3s or other music files, ringtones, game sound effects, or DTMF tones) and video (e.g., play a video streamed over the web or from local storage).
其他在这个包中的特殊类提供能够在位图中检测人脸(FaceDetector),控制音频路由选择(对于终端或手持设备)以及控制警告如铃声和电话震动(AudioManager).
Other
special classes in the package offer the ability to detect the faces
of people in Bitmaps (FaceDetector
),
control audio routing (to the device or a headset) and control
alerts such as ringtones and phone vibrations (AudioManager
).
Interfaces
接口定义于当音频在系统中的聚焦被更新则被回调 Interface definition for a callback to be invoked when the audio focus of the system is updated. |
|
接口定义于当一个音频录音已经到达由setNotificationMarkerPosition(int)设置的通知标记或者由setPositionNotificationPeriod(int)设置在记录头部的过程中周期性更新 时则被回调 Interface
definition for a callback to be invoked when an AudioRecord has
reached a notification marker set
by |
|
接口定义于当回放一个音频音轨的头部位置已经到达一个通知标记或者 已经增加一个确定周期时被回调。 Interface definition for a callback to be invoked when the playback head position of an AudioTrack has reached a notification marker or has increased by a certain period. |
|
当JET引擎发生一个事件时获得这个通知 Handles the notification when the JET engine generates an event. |
|
接口定义于显示一个在网络上的媒体资源流的缓存状态时被回调 Interface definition of a callback to be invoked indicating buffering status of a media resource being streamed over the network. |
|
接口定义当一个媒体资源的回放已经完成时被回调 Interface definition for a callback to be invoked when playback of a media source has completed. |
|
接口定义当在异步操作中有一个错误(其他错误将在方法调用时抛出)时被回调 Interface definition of a callback to be invoked when there has been an error during an asynchronous operation (other errors will throw exceptions at method call time). |
|
接口定义一些关于媒体或者它的回放的信息且/或警告的通讯时被回调 Interface definition of a callback to be invoked to communicate some info and/or warning about the media or its playback. |
|
接口定义当媒体源为回放已准备好时被回调 Interface definition for a callback to be invoked when the media source is ready for playback. |
|
接口定义显示一个操作完成时被回调 Interface definition of a callback to be invoked indicating the completion of a seek operation. |
|
接口定义当视频尺寸是首次知道或者被更新时被回调 Interface definition of a callback to be invoked when the video size is first known or updated |
|
接口定义当记录时一个错误发生时被回调 Interface definition for a callback to be invoked when an error occurs while recording. |
|
接口定义当记录时一个错误发生时被回调 Interface definition for a callback to be invoked when an error occurs while recording. |
|
一个接口用于通知媒体扫描链接MediaScannerConnection的客户端当到媒体扫描仪MediaScanner服务的连接已经被创立并且当文件的扫描已经完成时。 An interface for notifying clients of MediaScannerConnection when a connection to the MediaScanner service has been established and when the scanning of a file has completed. |
|
接口通知客户端扫描一个请求的媒体文件的结果 Interface for notifying clients of the result of scanning a requested media file. |
|
接口定义当所有声音被装载时被回调 Interface definition for a callback to be invoked when all the sounds are loaded. |
Classes
播放一系列音频URIs, 但在其他线程上做所有困难的工作以便于在预处理或载入是的任何缓慢而使播放线程不至阻塞 Plays a series of audio URIs, but does all the hard work on another thread so that any slowness with preparing or loading doesn't block the calling thread. |
|
这个AudioFormat类是被有权使用许多音频格式和频道配置常量 The AudioFormat class is used to access a number of audio format and channel configuration constants. |
|
AudioManager提供进入音量和铃声模式控制 AudioManager provides access to volume and ringer mode control. |
|
这个AudioRecord类管理音频资源对于Java应用采用音频输入硬件架构记录的音频 The AudioRecord class manages the audio resources for Java applications to record audio from the audio input hardware of the platform. |
|
这个AudioTrack类管理并通过Java应用程序播放一个单个音频资源 The AudioTrack class manages and plays a single audio resource for Java applications. |
|
这个CamcorderProfile类用于取回预定义摄像机描述设置用于摄像机应用 The CamcorderProfile class is used to retrieve the predefined camcorder profile settings for camcorder applications. |
|
这个CameraProfile类用于取回预定义静态图像照片(jpeg)品质等级(0-100)用于低、中、高质量设置在相机应用中 The CameraProfile class is used to retrieve the pre-defined still image capture (jpeg) quality levels (0-100) used for low, medium, and high quality settings in the Camera application. |
|
这是一个读写JPEG文件中Exif标签的类 This is a class for reading and writing Exif tags in a JPEG file. |
|
标识在位图中人脸图形对象 Identifies the
faces of people in a |
|
在位图中的一个脸包含了所有信息标识 A Face contains all the information identifying the location of a face in a bitmap. |
|
JetPalyer提供进入JET内容回放和控制 JetPlayer provides access to JET content playback and control. |
|
MediaMetadataRetriever类提供一个统一接口用于取回框架和来自一个输入媒体文件的元数据 MediaMetadataRetriever class provides a unified interface for retrieving frame and meta data from an input media file. |
|
MediaPlayer类能用于控制回放音频/视频文件和流 MediaPlayer class can be used to control playback of audio/video files and streams. |
|
用于记录音频和视频 Used to record audio and video. |
|
定义音频编码 Defines the audio encoding. |
|
定义音频源 Defines the audio source. |
|
定义输出格式 Defines the output format. |
|
定义视频编码 Defines the video encoding. |
|
定义视频源 Defines the video source. |
|
MediaScannerConnection提供一个途径为应用程序通过一个新建立或者下载的媒体问题到媒体扫描仪服务 MediaScannerConnection provides a way for applications to pass a newly created or downloaded media file to the media scanner service. |
|
铃声提供一个快速方法用于播放铃声,通知,或其他类似的声音类型 Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds. |
|
RingtoneManager提供有权使用铃声,通知,和其他声音类型 RingtoneManager provides access to ringtones, notification, and other types of sounds. |
|
这个SoundPool类管理并为应用程序播放音频资源 The SoundPool class manages and plays audio resources for applications. |
|
为媒体提供缩略图生成程序。 Thumbnail generation routines for media provider. |
|
这个类提供方法来播放双音多频声音(ITU-T 推荐 Q.23),调监控音(3GPP TS 22.001,CEPT)及专有音(3GPP TS 31.111) This class provides methods to play DTMF tones (ITU-T Recommendation Q.23), call supervisory tones (3GPP TS 22.001, CEPT) and proprietary tones (3GPP TS 31.111). |
相关推荐
恢复已经停止的更新下载。 'android.server.checkin.FOTA_RESTART' 通过 OTA 下载并安装操作系统更新。 'android.server.checkin.FOTA_UPDATE' 用户按下了'Media Button'。...'android.intent.action.PACKAGE_ADDED'
import android.media.MediaCodec;import android.media.MediaCodec.BufferInfo;import android.media.MediaCodecInfo;import android.media.MediaExtractor;import android.media.MediaFormat;import android.os....
功能模块:1.实现服务的onCreate(),重写onbind()方法,销毁onDestroy...import android.media.MediaPlayer; import android.os.Binder; import android.os.IBinder; public class MediaService extends Service {
或直接把目标系统的签名证书platform.pk8和platform.x509.pem(根据android.mk文件的LOCAL_CERTIFICATE 定义,也可能是shared.pk8、media.pk8等)覆盖到build\target\product\security也可,这样就不需要再手工签名了...
import android.media.MediaCodecInfo; import android.media.MediaExtractor; import android.media.MediaFormat; import android.util.Log; import java.io.File; import java.io.FileOutputStream; import java....
1:列出所有应用的包名 pm list packages rk3288:/ $ pm list packages ...package:com.android.providers.media package:com.android.wallpapercropper package:com.android.documentsui package:com.android.e
其他类如 `android.media.cts.MediaRecorderTest` 和 `android.media.cts.FaceDetectorTest` 分别测试媒体录制和面部检测功能。 3. **CTS Method Run**:通过指定测试方法,比如 `run cts --class android.app.cts....
import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view....
import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.widget.MediaController; import android.widget...
sdStatus.equals(Environment.MEDIA_MOUNTED)) { // 检测sd是否可用 Log.i("TestFile", "SD card is not avaiable/writeable right now."); return; } new DateFormat(); String name = ...
《Android Support7Demos.apk:探索Android支持库的魅力》 Android Support7Demos.apk 是一个专门为开发者设计的应用程序,旨在展示Android Support Library v7中的各种组件和功能。这个自编译的APK允许用户直观地...
import android.media.MediaPlayer; public class SoundService { Map, MediaPlayer> sounds = new HashMap, MediaPlayer>(); Context context = null; public SoundService(Context context) { this....
import android.media.MediaPlayer.OnCompletionListener; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Vibrator; import android.view.SurfaceHolder; ...
安卓飞机大战源码,面向对象思想,多线程,包含注释. 最近闲来无事看看安卓的api做一个飞机大战. 如有转发需声明作者:吴年和. 本代码无偿开源. 图片与声音我就不提供了. ...import android.media.MediaPlayer; import
首先,让我们先看下实现的截图: 当有录音文件存在时,会显示在下面的ListView当中。 下面给出实现的完整代码: 1.主程序代码 ...import android.media.MediaRecorder; import android.net.Uri; import androi
在Android应用中,我们需要实现一个DLNA服务器端(通常称为MediaServer),它负责将手机上的媒体文件(如照片、音乐和视频)转换为DLNA兼容格式,并对外发布媒体资源。同时,应用还需要实现一个客户端...
+ Supported local video file playback, main formats: ...Format (.mov, .qt), WebM (.webm), Windows Media Video (.wmv). + Supported main streaming media protocols: HTTPS, HTTP, HLS, RTSP, RTMP.
本实例主要使用了android的重力感应功能并配合动画效果实现,主要代码如下: ...import android.media.AudioManager; import android.media.SoundPool; import android.os.Bundle; import android.os.Handler; import a
在Android中,当用户插入耳机并点击耳机上的按钮时,系统会发送一个ACTION_MEDIA_BUTTON的Intent来响应这一操作。这个Intent的附加值是一个KeyEvent对象,包含了按键的详细信息。为了处理这种事件,我们需要创建一个...