Creating Android Native Plugin using MediaPlayer for Unity2D to achieve gapless music loop
$10-30 USD
Closed
Posted about 5 years ago
$10-30 USD
Paid on delivery
I want to achieve both gapless music loop and playing music in background for Android app in Unity2D. First I tried Unity audio system, but I found that music stops when pressing home button. Next I tried Unity asset Android Native Audio and was able to get tracks playing in the background. However, there is gap in music loop using this asset. I checked the code in asset and found that this asset use Android native MediaPlayer. I understand that in Android gapless music loop is issue but there is a solution about that written as in stackoverflow below. I myself tried this LoopMediaPlayer calss in Android Studio project. It works fine. So I want an Android plugin based on this stackoverflow solution for Unity to achieve both gapless and keeping music play in background. I want a Unity sample project that have gapless loop/run in background and Android plugin java source code for Android Studio.
[login to view URL]
[login to view URL]
Hi,
My name is Longchang Cui and I am a professional game developer.
I remember Unity can loop music instantly without the gap.
Do you need an android plugin or unity project that plays gapless music?
I may need more details of your requirements.
Just let me know if you want me to have a look at it.