android / media-samples

Multiple samples showing the best practices in media APIs on Android (audio, video, etc.).
Apache License 2.0
1.28k stars 741 forks source link

I would like to find information on how to implement Picture-in-Picture (PIP) functionality in Unity for Android. #90

Open YuPontos opened 1 year ago

YuPontos commented 1 year ago

I've come across an article (https://medium.com/@ashishgogna9/use-picture-in-picture-mode-in-your-unity-game-app-9789bdcf4f89) and have successfully implemented the Android Picture-in-Picture (PIP) functionality.

However, the issue with this method is that every time I release a new version, I need to switch the build to 'Export Project', then manually edit the UnityPlayerActivity in Android Studio and repackage it into an APK. During this process, I might miss out on 'libil2cpp.so'.

Is there another way to implement PIP functionality directly within Unity?