API-Examples
API-Examples copied to clipboard
While integrating lib-raw-data in android the callback method of MediaPreprocessing class i.e. onCaptureVideoFrame, onPreEncodeVideoFrame or onRenderVideoFrame are not executed for getting video frame of LocalVideoStreaming
do you reproduce this issue by run the demo directly?
@yoreland I have the same issue, raw-data doesn't work in demo app. It is working with agora 2.9.4 and old raw-data-api-java project in my own app.
Upon further investigation we saw that mediaEngine is null and part below isn't called consequently in .cpp
We only changed joinChannel with the code below (we were getting APP ID invalid error with the original code)
engine.joinChannel(null, channelId, null, 0);
agora::util::AutoPtr<:media::imediaengine> mediaEngine;
mediaEngine.queryInterface(rtcEngine, agora::INTERFACE_ID_TYPE::AGORA_IID_MEDIA_ENGINE);
if (mediaEngine)
{
////
}
@Jack29913 it might be you failed to join the channel. has your project turned on token feature?
@Jack29913 @TriveniRajput can you please check branch dev/android should be just fixed. c++ headers are updated to 3.3.1 version
@yoreland yes i have directly run it from demo.. for this c++ headers are updated to 3.3.1 version I will check it.
@plutoless no, after the modification both of the clients successfully joined the channel. we don't and won't use token feature. I will check the dev/android branch.
dev/android branch didn't fixed it either. I fixed it by specifying ndk version in my app, it looks like raw-data doesn't work with recent ndks. You should add ndk version in you app's gradle, like this:
android {
compileSdkVersion 30
ndkVersion '20.1.5948944'
///
}
The fix just merged to master branch. My local ndk version is 21, we will do some ndk compatible test and add them to readme doc. Thanks for the information!
@Jack29913 @yoreland Running into the same issue with version 3.3.1. How do I get the 2.9.4 version? Could you provide the commit id?