I am developing an app for iOS and Android to make a video call between two devices. The idea is to develop one c++ library for both platforms, and to integrate the comunication and display parts in the same way. For compatibility reasons, I am using OpenGL to represent the video, and FFMPEG to encode the comunication, but in some other questions (like here) I have read that it is not the best option for Android. Although, I have realized that on iOS, the opengl approach is faster than the native approach I have tested. So the question is: For Android, which is the alternative to OpenGL, but using JNI? Is there any?
Asked
Active
Viewed 482 times
1 Answers
1
You can use OpenGL ES, a flavor of the OpenGL specification intended for embedded devices. This version is also optimized for mobile devices. OpenGL ES is available for Android and iOS.
- http://developer.android.com/guide/topics/graphics/opengl.html
- https://developer.apple.com/opengl-es/
The following SO questions can get you in the right direction when it comes to implementing this: