AgoraIO / Advanced-Video

MIT License
261 stars 336 forks source link

Questions on sample projects - Android #212

Closed ArcherEmiya05 closed 3 years ago

ArcherEmiya05 commented 4 years ago

Good day, the sample apps and SDK itself are still awesome and robust. Great work!

I just have some few question on one of the sample particularly in PacketProcessor.class that uses native library written in C++.

  1. How can I check if packet_processing_plugin_jni is working properly and what exactly it is, like where it is source and does it have any documetation?

  2. Can we use it as well in voice call project sample?

Another one is that I cannot see a working sample with share screen as it is seems to be included in README.md file in this Advance Video project.

plutoless commented 4 years ago

hi @ArcherEmiya05 the corresponding c++ files are placed here https://github.com/AgoraIO/Advanced-Video/tree/f96c77ae32670a7f3c00680bf6b1e38207db5493/Android/sample-video-encrypt/src/main/cpp packet_processing_plugin_jni is basically a c++ jni wrapper for you to call c++ apis from java.

And you can for sure use in the voice call project.

For share screen please look at switch external video sample

ArcherEmiya05 commented 4 years ago

Is there a way to know if it works properly, sorry not familiar with native C++ thing that is why I do not want to touch the code there :<

plutoless commented 4 years ago

what feature do you want to achieve? the easiest way is to modify the data in the callback and see if it's taking effect

ArcherEmiya05 commented 4 years ago

Just wanted to log any details or related from encrypted packet data while having a call session.

plutoless commented 4 years ago

for example? data bitrate? fps? we have callbacks which you can listen to in order to get these data, e.g. onRemoteVideoStats

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.