所支持的格式,都是已经注册的MIME类型。可以到
http://www.iana.org/assignments/media-types/index.html查询MIME类型。
可以使用Manager类的静态方法查询支持的声音格式:
public static String[] getSupportedContentTypes(String protocol);
获取具体类型所支持的协议方法:
public static String[] getSupportedProtocols(String content_type);
以下代码将输出在模拟器上支持的类型:
WTK DefaultColorPhone默认输出:
video/mpeg
http,file,
image/gif
http,file,
audio/x-wav
http,file,capture,
audio/amr
http,file,
audio/x-tone-seq
http,file,device,
video/vnd.sun.rgb565
capture,
audio/sp-midi
http,file,
audio/midi
http,file,device,