Build Android Advance Music Streaming App using Jetpack Compose with Exoplayer + Gemini AI
['Mikkel Septiano']
ProAndroidDev - Medium
Let’s say we talk about Spotify now, do you know how much total users of Music listener especially in Spotify?
Anyway, do you curious about how to create Advance streaming music player like Spotify does?
Now I wanna share to you about how to build Advance Android Music Streaming App using Jetpack Compose and Exoplayer integrated with Gemini AI to give us music recommendation by current date.
Create MusicService.kt and initialize Exoplayer :private val exoplayer: ExoPlayer by lazy {ExoPlayer.Builder(this).build()}5.
class MusicService : Service() {private val exoplayer: ExoPlayer by lazy {ExoPlayer.Builder(this).build()}private val serviceJob = SupervisorJob()private val serviceScope = CoroutineScope(Dispatchers.IO + serviceJob).