I have just started to work on the Android Multimedia Framework (Stagefright
) and have a basic idea of how local playback works in AwesomePlayer
which uses OMXCodec
.
I have been mapping my understanding using the MediaPlayer
state diagram
http://developer.android.com/reference/android/media/MediaPlayer.html and so far it has been pretty good. I have been able to map my understanding to the code.
But I look at the ACodec
module (probably for streaming rtsp
, HLS
etc) I am finding difficulty.
I am not able to understand how MediaCodec
comes into picture.
I checked this article Android: MPEG4Writer fails to start when using OMXCodec as MediaSource but still not able to come to terms with MediaCodec.
- Is the flow diagram different for Streaming vs Local Playback.
- How is
MediaCodec
different fromOMXCodec
I do know that the engine in case of Local Playback is Awesome which is replaced by NuPlayer
in case of streaming.