我想在android上顯示視頻緩衝區。我正在使用Android 4.1 Jelly Bean中發佈的媒體編解碼器API。在Android 4.1媒體編解碼器示例實現
樣品是這樣的:
MediaCodec codec = MediaCodec.createDecoderByType(type);
codec.configure(format, ...);
配置方法接受其他3個參數,除了MediaFormat。我已經能夠找出MediaFormat,但我不確定其他3個參數。 (下面)。
MediaSurface, MediaCrypto and Flags.
任何導致?
另外,如果我不加密我的視頻緩衝區,應該如何處理MediaCrypto參數。
要求:
1) Decode the buffers on the android device,
2) Display them on the screen.
看一看在提供回答我的問題的例子[這裏] [1]。 [1]:http://stackoverflow.com/questions/13418093/mime-type-of-android-camera-previewformat – gleerman