BUG: I FIX
This commit is contained in:
parent
3bd9dc031a
commit
d81391f593
10 changed files with 53 additions and 10 deletions
|
@ -1806,6 +1806,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL
|
|||
}
|
||||
|
||||
super.onDestroy()
|
||||
Glide.with(this).clear(exoPlay)
|
||||
finishAndRemoveTask()
|
||||
}
|
||||
|
||||
|
@ -1934,6 +1935,8 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL
|
|||
snackString("Cast API not available")
|
||||
return
|
||||
}
|
||||
//make sure mediaItem is initialized and castPlayer is not null
|
||||
if (!this::mediaItem.isInitialized || castPlayer == null) return
|
||||
castPlayer?.setMediaItem(mediaItem)
|
||||
castPlayer?.prepare()
|
||||
playerView.player = castPlayer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue