Skip to content

[Android] The demo is not work on Huawei Mate40E #2216

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

Open
natural-law opened this issue Apr 26, 2025 · 9 comments
Open

[Android] The demo is not work on Huawei Mate40E #2216

natural-law opened this issue Apr 26, 2025 · 9 comments
Assignees
Labels

Comments

@natural-law
Copy link

natural-law commented Apr 26, 2025

Unity version

2021.3.44f1

Unity editor platform

macOS

AVPro Video edition

Trial

AVPro Video version

3.2.4

Device hardware

Huawei Mate40E

Which Android OS version are you using?

12

Unity Graphics API

Vulkan

Video API

media3/ExoPlayer

Texture format

BGRA

Audio output

System Direct

Any other Media Player component configuration required to reproduce the issue.

No response

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

I reproduce the problem by the demo. My steps:

  • Create an empty Unity project.
  • Import AVProVideo plugin (version 3.2.4).
  • Build And Run on my device Huawei Mate40E with the demo scene Demo_Playlist.

Also I run the demo on the other device (OPPO A96), it works fine!
From the information in the log, the problem is occurred when decoding. Also I tried:

  • Play video with VideoApi.MediaPlayer, it has the same problem.
  • Play video with VideoApi.ExoPlayer and turn on the option [preferSoftwareDecoder], it has the same problem.

Media information

No response

Logcat output

The attachment is the log from the device.
demo-error.txt

@natural-law natural-law added the triage Needs triage label Apr 26, 2025
@Chris-RH
Copy link
Contributor

  1. Does the device run on HarmonyOS?
  2. Please update to AVPro Video version 3.2.5 and retest.

@Chris-RH Chris-RH added the Android Android platform label Apr 26, 2025
@natural-law
Copy link
Author

natural-law commented Apr 26, 2025

  1. Does the device run on HarmonyOS?
  2. Please update to AVPro Video version 3.2.5 and retest.

Yes, it's running on HarmonyOS 3.0.0. I've noticed that HarmonyOS platform is supported in the 3.2.5 version. But our app is an Android installer (.apk file). It's very difficult for us to publish a HarmonyOS app.
So does the problem is also solved on Android in the version 3.2.5?

@Chris-RH
Copy link
Contributor

Chris-RH commented Apr 26, 2025 via email

@natural-law
Copy link
Author

natural-law commented Apr 26, 2025

Its only a trial version for harmonyOS, so i suggest testing it yourselves.

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

OK, I will try it later. Thanks for your reply!

@natural-law
Copy link
Author

natural-law commented Apr 27, 2025

@Chris-RH I just tried the version 3.2.5, it looks like the problem is not solved in the version.
The attachment is the log of my test. Looking forward to your reply! Thank you.

demo-error-3.2.5.txt

@Chris-RH Chris-RH added HarmonyOS and removed Android Android platform labels Apr 27, 2025
@Chris-RH
Copy link
Contributor

Are you running an android emulation layer on harmonyOS?

@natural-law
Copy link
Author

Are you running an android emulation layer on harmonyOS?

I'm not sure what's your mean about [android emulation layer].
In fact, I build the demo project for Android platform (got a .apk file), and install the apk to the Huawei device. Then the problem occurred.

@Chris-RH
Copy link
Contributor

You should be building for Open Harmony if the device runs HarmonyOS.
Image

@MorrisRH
Copy link
Contributor

Android is supported via an emulation layer on devices running HarmonyOS and there are issues with ExoPlayer due to this. You could try using the MediaPlayer API instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants