안드로이드에 비디오 버퍼를 표시하려고합니다. Android 4.1 Jelly Bean에서 출시 된 미디어 코덱 API를 사용하고 있습니다.안드로이드에서 미디어 코덱 샘플 구현
샘플은 다음과 같이 진행됩니다
MediaCodec codec = MediaCodec.createDecoderByType(type);
codec.configure(format, ...);
구성 방법은 따로 MediaFormat 3 개 다른 인수를 받아들입니다. MediaFormat을 어떻게 든 알 수 있었지만 다른 세 가지 매개 변수에 대해서는 확신 할 수 없습니다. (이하).
MediaSurface, MediaCrypto and Flags.
모든 리드?
또한 비디오 버퍼를 암호화하지 않으면 MediaCrypto 인수로 어떻게해야합니까?
요구 사항 :
1) Decode the buffers on the android device,
2) Display them on the screen.
내 질문에 대한 답변에서 제공하는 예제를 살펴보고 인코딩하는 경우 경우가없는 경우는 null이어야한다 [ 여기] [1]. [1] : http://stackoverflow.com/questions/13418093/mime-type-of-android-camera-previewformat – gleerman