Update the android native libraries#2865
Conversation
|
What does this PR do exactly? It's hard to tell by the description and impossible by the blobs in diff - did you change ffmpeg to the LTS version? Is there a chance this will address #2864? |
|
If we’re going to break support for <v7 we better be sure as hell the game can’t run on those systems anyway |
|
@peppy this PR includes the version that still supports android 4.1. The update that comes after this one has an higher android sdk requirement |
|
This needs testing by someone at least a v8 android device handy |
|
What is the status of this PR? |
|
hasn't been tested yet |
|
Would be great if some android users could volunteer to test these changes. |
|
I think I have an armv8 device? Will queue this up. |
|
v7 should still work too, i believe. |
|
BASS seems to be working but this PR breaks video on my device. Not sure I'll be able to give more detail today but I'll try to look into it. |
|
Thankfully logcat spared me from a lengthy investigation. After looking at the links to the ffmpeg mobile releases above, it's become quite clear that the libraries were updated without their newly-required dependencies (ticks indicate things that have been updated in this PR, while crosses - Adding them back gets the video working again. @miterosan: before I go in pushing those missing files in here, was there any particular reason why you omitted them? Or did you just update only the files that existed in the repository before? |
MobileFFmpeg version used is 4.2.2 LTS, in the "full" variant:
https://github.com/tanersener/mobile-ffmpeg/releases/tag/v4.2.2.LTS
As per the release notes, it should support Android 4.1 (API level 16)
or higher.
|
I've pushed in the missing libraries. Tested on an armv8 device, by running both framework visual tests and the game with a local framework checkout. Seems to do fine (although video visual tests in framework seem to be triggering the memory leak at #3519 - I'm getting crashes/hangs after As per commit message, the libraries added here are the "full" variant. Would be good to have this tested on armv7 and x86 (although I don't really know if there are x86 android devices out there other than emulators?) |
|
In attempting to test on the armv8 device I have handy, the video test looks to crash, but on SSL issues rather than video playback. Is that something we've seen happen before? @bdach what's your build setup? Just wondering if something has regressed in newer xamarin versions or something.. |
|
Yeah, I think I might have gotten a little confused, it does seem like it could be ssl-related. Closest thing to an error logcat shows me is this: but judging by output it looks like it succeeded in the end...? Not sure. I was building through rider in debug config. Didn't change anything in the build config as far as I can tell. |
|
As described on Discord something really bad is happening with the web request that fetches the video in the test scene on Android. I thought it was due to single-threaded mode, but it doesn't break that way on desktop. I guess I'll open an issue and document findings there...? Not sure whether that should block this PR or not. |
|
Ignoring the ssl / network issue I think this looks OK. I don't have an armv7 device to test against so let's deploy and let the users do the testing. |

http://www.un4seen.com/forum/?topic=13225.0
https://github.com/tanersener/mobile-ffmpeg/releases/tag/v4.2.2.LTS
Please note that newer releases of mobile-ffmpeg require at least Android 7.0.
The version v4.2.2.LTS requires Android 4.1.