Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #140

Open
TriveniRajput opened this issue Mar 16, 2021 · 9 comments

Comments

@TriveniRajput
Copy link

No description provided.

@yoreland
Copy link
Contributor

do you reproduce this issue by run the demo directly?

@Jack29913
Copy link

Jack29913 commented Mar 24, 2021

@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 mediaEngine;
    mediaEngine.queryInterface(rtcEngine, agora::INTERFACE_ID_TYPE::AGORA_IID_MEDIA_ENGINE);
    if (mediaEngine)
    {
         ////
    }

@plutoless
Copy link
Contributor

@Jack29913 it might be you failed to join the channel. has your project turned on token feature?

@yoreland
Copy link
Contributor

@Jack29913 @TriveniRajput
can you please check branch dev/android
should be just fixed. c++ headers are updated to 3.3.1 version

@TriveniRajput
Copy link
Author

@yoreland yes i have directly run it from demo.. for this c++ headers are updated to 3.3.1 version I will check it.

@Jack29913
Copy link

Jack29913 commented Mar 25, 2021

@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.

@Jack29913
Copy link

Jack29913 commented Mar 25, 2021

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'
       ///
    }

@yoreland
Copy link
Contributor

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!

@ashimneupane
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants