I am going through the NuPlayer
implementations in Android Stagefright
. As per my understanding NuPlayerFactory
is creating NuPlayerDriver
in turn it creates ALooper
and NuPlayer
. I Couldn't understand ALooper
and what does it do. I can see all the implementations in NuPlayer
are invoking AMessage
calls e.g as below:
NuPlyercpp: new AMessage(kWhatSourceNotify, id());
I am not sure how does it trigger NuPlayer::onMessageReceived()
. Could readers please explain?