Commit b7e127a6 by 万齐军

feat: 播放卡顿处理

parent 143a5d99
...@@ -52,6 +52,7 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) : ...@@ -52,6 +52,7 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
fun onDetach() { fun onDetach() {
stopTiming() stopTiming()
video?.release(true) video?.release(true)
binding.videoView.removeAllViews()
} }
fun onBind(item: VideoViewModel) { fun onBind(item: VideoViewModel) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment