Giter VIP home page Giter VIP logo

Comments (10)

thanwah avatar thanwah commented on July 28, 2024 1

Thank you for the additional details! We will try to reproduce the issue internally and get back to you when we know more.

from play-instant-unity-plugin.

thanwah avatar thanwah commented on July 28, 2024 1

Hi @Zeratu,

I just wanted to share an update that we were able to locally reproduce this issue on a Pixel running Android 8.1.

Just to confirm that it's the same issue, if you look at logcat do you see an error like this?
eoplayer I/ServiceManager: Waiting for service drm.drmManager...
2019-09-25 16:02:57.851 477-477/? E/SELinux: avc: denied { find } for service=drm.drmManager pid=20190 uid=10572 scontext=u:r:ephemeral_app:s0:c512,c768 tcontext=u:object_r:drmserver_service:s0 tclass=service_manager permissive=0

Thanks again.

from play-instant-unity-plugin.

thanwah avatar thanwah commented on July 28, 2024

Thanks for letting us know about this issue. There is a difference in the Android instant apps runtime between Android 9+ (the runtime is built into the Android framework) and Android 8.0 and earlier (it's provided by "Google Play services for instant apps").

Can you confirm that this is a Unity project? If so, what version? What library are you using to play video - a Unity API, ExoPlayer, or something else?

Also, are there any associated errors in logcat that could tell us more information about what is happening?

from play-instant-unity-plugin.

Zeratu avatar Zeratu commented on July 28, 2024

Details are as following:

  1. We created Play Instant game with Unity 2019.1.4.
  2. We used Native Video Player Component to play video clip in the game.
  3. With same built version which we submit to Google Store, it works on Android 9.0 device, video could play. But on Android 8.0 device, the video did not play at all, but there is no error has been thrown.
  4. However, If I install the Play Instant as APK on Android 8.0 device, the video played fine.

I suspect this is a Bug for Unity deloying App with Google Instant framework.

Thank you!

from play-instant-unity-plugin.

Zeratu avatar Zeratu commented on July 28, 2024

Thank you very much! Look forward for your feedback. :)

from play-instant-unity-plugin.

Zeratu avatar Zeratu commented on July 28, 2024

Yes, there it is!

09-27 17:45:57.773 31601 31601 D ViewRootImpl@70c5c59[UnityPlayerActivity]: ViewPostIme key 0
09-27 17:45:57.782 720 720 D SEC LightsHAL: button : 1 -
09-27 17:45:57.794 605 605 E audit : avc: denied { find } for service=drm.drmManager pid=31601 uid=10381 scontext=u:r:ephemeral_app:s0:c512,c768 tcontext=u:object_r:drmserver_service:s0 tclass=service_manager
09-27 17:45:57.795 31601 31645 I ServiceManager: Waiting for service drm.drmManager...
09-27 17:45:57.813 1333 2859 D InputReader: Input event(8): value=0 when=228473451019000
09-27 17:45:57.816 1333 2859 D WindowManager: interceptKeyTq s_result=1
09-27 17:45:57.818 1333 2858 I InputDispatcher: Delivering key to (31601): action: 0x1 (0)
09-27 17:45:57.819 14075 14075 D InputMethodService: onKeyUp B key
09-27 17:45:57.819 14075 14075 D InputMethodService: onKeyUp not B key
09-27 17:45:57.819 31601 31601 D ViewRootImpl@70c5c59[UnityPlayerActivity]: ViewPostIme key 1

from play-instant-unity-plugin.

jamcohen avatar jamcohen commented on July 28, 2024

Hi Zeratu,

Thank you for the detailed information! We were able to track down the issue.

Unity's video player uses MediaExtractor under the hood. Unfortunately, there is a bug in Android Oreo that breaks MediaExtractor in instant apps.

The bug was fixed for Oreo after it was already released: https://android-review.googlesource.com/c/platform/system/sepolicy/+/700511

It's up to the individual OEMs to patch that fix in and push an updated Android version to their devices, so it's possible that the video player works on some devices but not others.

If you're planning on releasing an instant app that uses Unity's video player, please contact us at [email protected] to discuss possible options.

from play-instant-unity-plugin.

Zeratu avatar Zeratu commented on July 28, 2024

Thanks for your relay! I will discuss with team and see what we can do in next!

Thanks again! :)

from play-instant-unity-plugin.

Zeratu avatar Zeratu commented on July 28, 2024

@jamcohen , I have wrote a e-mail, and look forward for option discussion.
Thank you!

from play-instant-unity-plugin.

thanwah avatar thanwah commented on July 28, 2024

Thank you! I responded to your email. Closing this issue now.

from play-instant-unity-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.