我正在尝试在Android上显示视频缓冲区。我正在使用Android 4.1 Jelly Bean发布的媒体编解码器API。
示例如下:
MediaCodec codec = MediaCodec.createDecoderByType(type);
codec.configure(format, ...);
configure方法除了MediaFormat参数外,还接受其他3个参数。我已经弄清楚了MediaFormat,但是其他三个参数我不确定。具体如下:
MediaSurface, MediaCrypto and Flags.
有任何线索吗?
另外,如果我不加密视频缓冲区,我应该怎么处理MediaCrypto参数。
要求:
1) Decode the buffers on the android device,
2) Display them on the screen.