UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

[Android] No playback when using media player on Android emulator

Open alltry1014 opened this issue 1 year ago • 9 comments

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.

alltry1014 avatar Sep 25 '24 14:09 alltry1014

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.

Chris-RH avatar Sep 25 '24 14:09 Chris-RH

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.

alltry1014 avatar Sep 25 '24 16:09 alltry1014

I think this is fixed in the next release (v3.1.0) which we are aiming to release in the coming days.

image

Ste-RH avatar Oct 03 '24 15:10 Ste-RH

Dear AVProVideo Support,thank you very much!

alltry1014 avatar Oct 04 '24 08:10 alltry1014

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 avatar Oct 18 '24 06:10 alltry1014

@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.

Ste-RH avatar Oct 18 '24 07:10 Ste-RH

OK, thanks.

alltry1014 avatar Oct 18 '24 08:10 alltry1014

AVPro Video v3.1.0 has just been released. Please do report back if the fixes in the version address the issue.

Ste-RH avatar Oct 18 '24 16:10 Ste-RH

I change build settings like this: image

image 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: image

image

I use demo video, that only work well on lightning emulator. image

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!

alltry1014 avatar Oct 19 '24 06:10 alltry1014

Dear AVProVideo Support,the issue is still not solved.

alltry1014 avatar Oct 25 '24 08:10 alltry1014

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.

Ste-RH avatar Oct 25 '24 13:10 Ste-RH

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.

Ste-RH avatar Oct 25 '24 16:10 Ste-RH

OK,When will the next version be available? Thanks!

alltry1014 avatar Oct 26 '24 03:10 alltry1014

We have no planned date for v3.1.2 yet, and no fix implemented for this problem as things stand.

Ste-RH avatar Oct 29 '24 15:10 Ste-RH

Too hard for me. The online test comes soon.Thanks.

alltry1014 avatar Oct 30 '24 13:10 alltry1014

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.

Ste-RH avatar Oct 30 '24 17:10 Ste-RH

Our online paid test for players is coming soon.Now we temporarily use version 2.9.3. Thanks.

alltry1014 avatar Oct 31 '24 10:10 alltry1014

Just want to circle back on this @alltry1014 . Are you making sure you are building your APK targeting x86_64 ?

image

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.

image

Ste-RH avatar Nov 28 '24 15:11 Ste-RH

Have you tried that @alltry1014 ?

Chris-RH avatar Dec 03 '24 12:12 Chris-RH

Sorry for the long wait! I'm sorry for tell you that is not work for me. image image

The logs for you! dont_play_log.txt

alltry1014 avatar Dec 04 '24 10:12 alltry1014

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.

Ste-RH avatar Dec 04 '24 10:12 Ste-RH

Very Good! I still keep this setting and change api to Exo Player. It works! Thanks, Dear AVProVideo Support! image

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.

alltry1014 avatar Dec 04 '24 11:12 alltry1014

This change is also effective on Huawei Mate60 pro. Does it mean that exo player is better than media player? Thanks!

alltry1014 avatar Dec 04 '24 11:12 alltry1014

Yes, we recommend ExoPlayer.

The Huawei Mate 60 Pro is a HarmonyOS device, no?

Ste-RH avatar Dec 04 '24 11:12 Ste-RH

Yes, but still using Android instead of OpenHarmony.

image img_v3_02h8_4ce2ed1e-a690-4e94-8ef9-b366f174517g

alltry1014 avatar Dec 04 '24 11:12 alltry1014

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

alltry1014 avatar Dec 04 '24 13:12 alltry1014

We don't support HarmonyOS yet.

Chris-RH avatar Dec 04 '24 14:12 Chris-RH

OK, but the v2.9.3 can work well on both HarmonyOS and Android emulator.

alltry1014 avatar Dec 05 '24 01:12 alltry1014

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.

Ste-RH avatar Dec 05 '24 11:12 Ste-RH

Thank you very much!

alltry1014 avatar Dec 12 '24 14:12 alltry1014