Play audio in background

This commit is contained in:
rimthekid 2022-02-06 20:21:37 +04:00
parent cdc7ec6e5b
commit 4dc7bb3371
2 changed files with 6 additions and 2 deletions

View File

@ -46,5 +46,4 @@ interface PipedApi {
@GET("subscriptions")
suspend fun subscriptions(@Header("Authorization") token: String): List<Subscription>
}

View File

@ -229,10 +229,15 @@ class PlayerFragment : Fragment() {
override fun onStop() {
super.onStop()
}
override fun onDestroy() {
super.onDestroy()
try {
exoPlayer.stop()
}catch (e: Exception){}
}
private fun fetchJson(view: View) {