虽然各个机型都对多媒体的支持做了定制,但是了解android平台默认支持的格式,可以让自己的多媒体应用做的更通用。本文主要对目前主流的android平台的支持情况做个介绍。

android默认支持的多媒体格式:集装箱运费

一.对网络多媒体的协议支持

主要由如下三种:

  • RTSP (RTP, SDP) 实时的流媒体协议,主流的web应用应该都用的这个吧。
  • HTTP 非完全的,支持部分流媒体播放发型123
  • HTTP live streamingdraft protocol(Android 3.0 以上)

二.主流平台中支持的多媒体格式

Type Format / Codec Encoder Decoder Details Supported File Type(s) / Container Formats
Audio AAC LC/LTP Mono/Stereo content in any combination of standard bit rates up to 160 kbps and sampling rates from 8 to 48kHz 3GPP (.3gp), and MPEG-4 (.mp4, .m4a). ADTS raw AAC (.aac, decode only, ADIF not supported, Android 3.1+).
HE-AACv1 (AAC+)
HE-AACv2 (enhanced AAC+)
AMR-NB 4.75 to 12.2 kbps sampled @ 8kHz 3GPP (.3gp)
AMR-WB 9 rates from 6.60 kbit/s to 23.85 kbit/s sampled @ 16kHz 3GPP (.3gp)
FLAC

(Android 3.1+)
Mono/Stereo (no multichannel). Sample rates up to 48 kHz (but up to 44.1 kHz is recommended on devices with 44.1 kHz output, as the 48 to 44.1 kHz downsampler does not include a low-pass filter). 16-bit recommended; no dither applied for 24-bit. FLAC (.flac) only
MP3
Mono/Stereo 8-320Kbps constant (CBR) or variable bit-rate (VBR) MP3 (.mp3)
MIDI
MIDI Type 0 and 1. DLS Version 1 and 2. XMF and Mobile XMF. Support for ringtone formats RTTTL/RTX, OTA, and iMelody Type 0 and 1 (.mid, .xmf, .mxmf). Also RTTTL/RTX (.rtttl, .rtx), OTA (.ota), and iMelody (.imy)
Ogg Vorbis

Ogg (.ogg)
PCM/WAVE
8- and 16-bit linear PCM (rates up to limit of hardware) WAVE (.wav)
Image JPEG Base+progressive JPEG (.jpg)
GIF

GIF (.gif)
PNG
PNG (.png)
BMP

BMP (.bmp)
Video H.263
3GPP (.3gp) and MPEG-4 (.mp4)
H.264 AVC
(Android 3.0+)
Baseline Profile (BP) 3GPP (.3gp) and MPEG-4 (.mp4). MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)
MPEG-4 SP

3GPP (.3gp)
VP8

(Android 2.3.3+)

WebM(.webm)

对于手机版的Web应用可以考虑采用H.264的codec

更多相关文章

  1. Android4开发入门经典 之 第十部分:多媒体
  2. 关于Google IO 2015,你必须知道的9件事
  3. Google Android(安卓)Developer
  4. Android(安卓)学习之《第一行代码》第二版 笔记(二十)播放多媒体文
  5. 神奇开发工具 将iOS游戏一键转换为Android支持版本
  6. Android(安卓)4.0 Ice Cream Sandwich 带有游戏控制器支持
  7. Android支持下列所有单位。
  8. 什么是Mono for Android?
  9. 让Android应用程序支持安装到SD卡(APP2SD)

随机推荐

  1. 我在android C层犯的错误
  2. Android(安卓)拖动条(SeekBar)实例 附完整d
  3. Android(安卓)Retrofit 源码系列(三)~ 整合
  4. Android-低功耗蓝牙(BLE)-客户端(主机/中
  5. Android重写ViewGroup实现卡片布局(三)
  6. Android(安卓)Studio中使用properties配
  7. Android之adb环境变量配置及adb使用
  8. 按钮的点击效果(按钮背景图片变换)
  9. selector和自定义显示状态
  10. delphi xe5 android 开发数据访问server