-
Notifications
You must be signed in to change notification settings - Fork 829
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
using ffmpeg.loadBinary cause to weird layout #184
Comments
Yea, I have the same problem.. I'm trying to fix it. |
I think you can go through the source code in "loadBinary()" , "CpuArchHelper.getCpuArch()" , and find "ffmpegLoadLibraryAsyncTask". |
I have solved it : |
not understand. |
See this StackOverflow post. loadBinary(...) makes a call that modifies the entire application's configuration, and particularly affects apps with RTL support. I've filed a merge request with a fix here |
You're a life saver, thank you, it worked ^^ |
Hello could you let me know the fix. I have called the loadbinary method before its use. Then even it causes the other layouts created afterwards to have LTR |
This repository has not been updated in 4 years. Till they accept the merge request, You can also use our repository: https://github.com/youtopin/ffmpeg-android-java |
Happy to see my StackOverflow answer helped you :) |
@Sepehr-gh Thanks for your repo, but I am not sure how I can use your repo in my project, can you please give me an example how should I write your gradle in my project? |
@higher-faster-better We haven't created any gradle repositories, so you cant directly use it in your own project. But you can clone the project and add it as new module to your own project. Then build it in your project. https://developer.android.com/studio/projects/android-library Also you can build it once and copy the library and use it, so you can get rid of the source code. Also we made some changes to the way project is built. Please check commits history and see if it matches your needs or change them according to yours. |
In android phones with language with default layout of R-T-L , after using the function ffmpeg.loadBinary() the layout change to L-T-R .
this phenomena not accrued when load binary execute from separate process
repro steps
3.restart phone
The text was updated successfully, but these errors were encountered: