StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
Merge branch 'pr-73-branch' into develop
David Nashash33cdc203fc9d
diff --cc app/src/main/java/com/streamvault/app/ui/screens/player/PlayerViewModel.ktindex 8fab561e,190280ba..dfb5ae29--- a/app/src/main/java/com/streamvault/app/ui/screens/player/PlayerViewModel.kt+++ b/app/src/main/java/com/streamvault/app/ui/screens/player/PlayerViewModel.kt@@@ -1086,14 -1092,12 +1092,13 @@@ class PlayerViewModel @Inject constructurl = session.streamInfo.url))- // Re-prime the adopted engine against the fullscreen surface path.- // Preview-to-fullscreen handoff can temporarily leave the reused live- // player with a stale render target if the old view is detached before- // the new one attaches. The shared binder now switches PlayerViews in- // Media3's recommended order, and refreshing the live media source keeps- // the adopted engine synced to the fullscreen render path without- // re-resolving provider URLs or abandoning the engine instance.- playerEngine.renewStreamUrl(session.streamInfo)+ if (shouldRenewAdoptedPreview) {+ // Re-prime when the preview has not produced video yet. This keeps+ // the previous audio-only/stale-surface recovery path without- // rebuffering a preview that is already rendering.++ // rebuffering a preview that is already rendering after the++ // PlayerView handoff switches targets in Media3's recommended order.+ playerEngine.renewStreamUrl(session.streamInfo)+ }playerEngine.play()startTokenRenewalMonitoring(session.streamInfo.expirationTime)maybeStartLiveTimeshift(session.streamInfo)