Any clues as to how I might go about bundling this for Android?
Aditya94A opened this issue · 3 comments
Would it be possible to somehow bundle this into an ARM native library?
@AdityaAnand1 have u find any clue to use them in android?
you need to write your own implementation, implement a GL Surface with some shaders and hook the transition parameters. there is currently no library for Android but feel free to contribute to the space :)
- this JS code can help as reference https://github.com/gre/gl-transition-libs/blob/master/packages/gl-transition/src/index.js but there are magic done under the hood by library "gl-shader". also WebGL is a tiny bit more high level than OpenGL, so it needs to be translated to OpenGL code.
- this code as reference can also help, it's a C++ implementation that use gl-transition: https://github.com/transitive-bullshit/ffmpeg-gl-transition
to summarize, it's not such a big deal to implement, but i'm not exactly sure what kind of library this needs to be (does it just expose utilities, does it expose a Surface?) and it might all depend on the actual usecase
Hi, @AdityaAnand1 you can check my code here: https://github.com/CreateChance/ImageEditor, I just import all transitions to my android project, and it works great on OpenGL ES with a little modification. Hope this help! :)