mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Merge pull request #1586 from Bnyro/master
different player error behavior
This commit is contained in:
commit
c477bb3f56
@ -896,12 +896,12 @@ class PlayerFragment : BaseFragment() {
|
||||
* Catch player errors to prevent the app from stopping
|
||||
*/
|
||||
override fun onPlayerError(error: PlaybackException) {
|
||||
Toast.makeText(
|
||||
context,
|
||||
error.localizedMessage,
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
super.onPlayerError(error)
|
||||
try {
|
||||
exoPlayer.play()
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user