I can register my custom IAkSinkPlugin implementation and add as output in my custom Android app (using C++ SDK). Plugin successfully initialized and the following methods of my plugin are called on Android except Consume:
Init
Reset
IsDataNeeded (I constantly set out_uBuffersNeeded to 4)
IsStarved
OnFrameEnd
IsStarved
OnFrameEnd
IsStarved
OnFrameEnd
IsStarved
OnFrameEnd
IsDataNeeded
IsDataNeeded
IsStarved
OnFrameEnd
...
I can hear the sound on the main output.
One thing I noticed that m_pSinkPluginContext->IsPrimary() returns false to my sink plugin and GetPluginInfo method never called. Is that an issue? How can I init my plugin on the primary tree?
I would like to encode the output to an mp4 video, that's why I need the output.