Android でビデオ バッファを表示しようとしています。Android 4.1 Jelly Bean でリリースされたメディア コーデック API を使用しています。
サンプルは次のようになります。
MediaCodec codec = MediaCodec.createDecoderByType(type);
codec.configure(format, ...);
configure メソッドは、MediaFormat 以外に 3 つの引数を受け入れます。何とか MediaFormat を把握できましたが、他の 3 つのパラメーターについてはわかりません。(下)。
MediaSurface, MediaCrypto and Flags.
手がかりはありますか?
また、ビデオ バッファを暗号化していない場合、MediaCrypto 引数をどうすればよいですか。
要件:
1) Decode the buffers on the android device,
2) Display them on the screen.