CS3IPlayer: stop player when releasing (#822)

This commit is contained in:
Luna712 2023-12-17 12:04:20 -07:00 committed by GitHub
parent ff9144ef54
commit 484c21cc1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -499,7 +499,11 @@ class CS3IPlayer : IPlayer {
if (saveTime) if (saveTime)
updatedTime() updatedTime()
exoPlayer?.release() exoPlayer?.apply {
setPlayWhenReady(false)
stop()
release()
}
//simpleCache?.release() //simpleCache?.release()
currentTextRenderer = null currentTextRenderer = null