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
1 changed files with 5 additions and 1 deletions

View File

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