[Android] No playback when using media player on Android emulator
Dear AVProVideo Support, The plugin that use media player can not play on the simulator.There are some logs for you.
Logs: lightning_simulator_dont_play_log3.txt
My Setup: Unity version: 2022.3.20f1 AVPro Video version: v3.0.11 Core Edition Operating system version: Andriod 9 Device model: Andriod Simulator Video specs (resolution, frame-rate, codec, file size): resolution: 1440 * 2476 frame-rate: 60fps codec: H.264 file size: 13.8 MB average bitrate: 3309kbps
This is very important for us. We have an online test recently. Please reply as soon as possible, thanks.
Hi @alltry1014,
You said previously that it was working on lightning simulator? What has changed since then?
We prioritise playback on actual hardware rather than emulators.
I just changed the exo player to media player. this works well when using exoplayer on lightning simulator.By the way, the version v.2.9.3 works well on both mumu simulator and lightning simulator.
I think this is fixed in the next release (v3.1.0) which we are aiming to release in the coming days.
Dear AVProVideo Support,thank you very much!
Dear AVProVideo Support,When will the next version be available? We will do a compatibility test recently. Please reply as soon as possible, thanks.
@alltry1014 Apologies for the delay. We have been working very hard to get it out asap, but have hit many small blockers which have meant a release would have been bug heavy, and that benefits no one. As my previous estimation was wildly incorrect - even though we were confident we could get it released in that timeframe - I am hesitant to put another timeframe on release. It will be as soon as possible.
OK, thanks.
AVPro Video v3.1.0 has just been released. Please do report back if the fixes in the version address the issue.
I change build settings like this:
so,that can build apk well.
But still get errors and not playback both in mumu or lightning emulator.
There are some logs for you.
lightning_simulator_dont_play_log4.txt
mumu_simulator_dont_play_log2.txt
There are some screenshots on the emulator for you:
I use demo video, that only work well on lightning emulator.
My video specs (resolution, frame-rate, codec, file size): resolution: 1668 * 2400 frame-rate: 30fps codec: H.264 file size: 14.7 MB average bitrate: 10275kbps
Thanks!
Dear AVProVideo Support,the issue is still not solved.
Hmm. Something looks to have become broken between when I tested and release of v3.1.0. I have just tested our latest development code branch and it appears to all work on MuMu. Will test again against our next release and report back.
Nothing has changed in v3.1.1 for this. MuMu still does not playback videos in AVPro Video. Though it appears to work with debug builds of the AVPro Video plugin.
OK,When will the next version be available? Thanks!
We have no planned date for v3.1.2 yet, and no fix implemented for this problem as things stand.
Too hard for me. The online test comes soon.Thanks.
Too hard for me. The online test comes soon.Thanks.
I am sorry, I do not understand this. Do you mean: 'This is too long for me, we have a demonstration/delivery soon' ?
As we do not officially support third part emulators, and AVPro Video works on the emulator you can use in Android Studio, I am afraid we will not be prioritising a fix for 3rd party emulators such as MuMu.
Our online paid test for players is coming soon.Now we temporarily use version 2.9.3. Thanks.
Just want to circle back on this @alltry1014 . Are you making sure you are building your APK targeting x86_64 ?
If I target ARM64 (the default for IL2CPP + real device), I get a crash shortly after the audio starts on video playback. If I target like the above, I get fully correct playback.
Have you tried that @alltry1014 ?
Sorry for the long wait! I'm sorry for tell you that is not work for me.
The logs for you! dont_play_log.txt
I see you are using the MediaPlayer API. Please try the ExoPlayer API.
Also, maybe a small difference, I did not have the ARM64 architecture ticked...you do.
Very Good! I still keep this setting and change api to Exo Player. It works! Thanks, Dear AVProVideo Support!
A long time ago, I used exo player but it didn't work on Huawei Mate60 pro. So I always used media player.I try this change again on the Huawei Mate60 pro now.
This change is also effective on Huawei Mate60 pro. Does it mean that exo player is better than media player? Thanks!
Yes, we recommend ExoPlayer.
The Huawei Mate 60 Pro is a HarmonyOS device, no?
Yes, but still using Android instead of OpenHarmony.
Sorry, I tried it again and found that it doesn't work on HarmonyOS, whether using media player or exo player. But the Version v3.0.8 only using media player works well on HarmonyOS. There are some logs for you! dnot_play_on_harmonyOS.txt dnot_play_on_harmonyOS2.txt dnot_play_on_harmonyOS3.txt work_well_using_v3.0.8_with_media_player.txt
We don't support HarmonyOS yet.
OK, but the v2.9.3 can work well on both HarmonyOS and Android emulator.
I believe the support for Android on HarmonyOS has a limited life. We are looking to support HarmonyOS at native level, but cannot put a timeframe on this at this stage. We will close this issue now as we have taken it as far as we can.
Thank you very much!