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

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, unity

Research direction

Review the linked Picture-in-Picture article and the UnityPlayerActivity export workflow, including the Android Studio repackaging step and the risk of missing libil2cpp.so. Determine whether a direct Unity implementation or a reliable packaging approach is supported; done means documenting a verified path that avoids the reported manual rework.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Kotlin
Stars
1.4k
Forks
777
Avg merge
1m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/media-samples

All issues in android/media-samples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.