fix #870, do not release exoPlayer on surface destroy
This commit is contained in:
parent
abdb91dbbe
commit
8d7366d228
1 changed files with 1 additions and 4 deletions
|
@ -500,10 +500,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||||
|
|
||||||
override fun onSurfaceTextureUpdated(surface: SurfaceTexture?) {}
|
override fun onSurfaceTextureUpdated(surface: SurfaceTexture?) {}
|
||||||
|
|
||||||
override fun onSurfaceTextureDestroyed(surface: SurfaceTexture?): Boolean {
|
override fun onSurfaceTextureDestroyed(surface: SurfaceTexture?) = false
|
||||||
releaseExoPlayer()
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onSurfaceTextureAvailable(surface: SurfaceTexture?, width: Int, height: Int) {
|
override fun onSurfaceTextureAvailable(surface: SurfaceTexture?, width: Int, height: Int) {
|
||||||
Thread {
|
Thread {
|
||||||
|
|
Loading…
Reference in a new issue