Comments (10)
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.
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.
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.
Details are as following:
- We created Play Instant game with Unity 2019.1.4.
- We used Native Video Player Component to play video clip in the game.
- 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.
- 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.
Thank you very much! Look forward for your feedback. :)
from play-instant-unity-plugin.
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.
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.
Thanks for your relay! I will discuss with team and see what we can do in next!
Thanks again! :)
from play-instant-unity-plugin.
@jamcohen , I have wrote a e-mail, and look forward for option discussion.
Thank you!
from play-instant-unity-plugin.
Thank you! I responded to your email. Closing this issue now.
from play-instant-unity-plugin.
Related Issues (20)
- Support for Asset Bundle manifest in Build and Run HOT 1
- Suggested .net API compatibility level (2.0 Subset) is not available in Unity 2018.3 HOT 3
- Build and Run works perfectly but does not launch on uploading to play console HOT 2
- Unity 2018.3 - link.xml doesn't work when build for console HOT 1
- how to make the game size reduce to 10MB limit HOT 7
- Build error with Unity 2018.4 and IL2CPP HOT 4
- Install error building with Unity 2019.3 HOT 2
- Invalid value for the 'android:targetSandboxVersion' attribute in the AndroidManifest. HOT 3
- Error Build & R HOT 1
- Error Build & Run on Unity 5.6.6f2 HOT 1
- Zip creation errors when path has spaces in it HOT 2
- Error parsing a meta element's content: ';' is not a valid key-value pair separator. HOT 4
- '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder. HOT 7
- CookieApi reference generating errors HOT 2
- Specifying asset bundle manifest may not be working
- Infinite spinning when deployed to device HOT 4
- Upload Fail HOT 8
- Is AndroidManifest necessary and "ShowInstallPrompt" can only work after upload to google play? HOT 13
- Is it only build and run on Device?? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-instant-unity-plugin.