From 1200e93e56ea04cc7ee4394a0be43c6f9096a64b Mon Sep 17 00:00:00 2001 From: DonDonDonDonDonDon <53328729+DonDonDonDonDonDon@users.noreply.github.com> Date: Fri, 19 May 2023 11:30:46 +0800 Subject: [PATCH] Update DanmakuVideoPlayer.java Add this super method. if it is not this method.The mAudioManager will continuously monitors.If we make the video auto play,when opening this page for the second time.It will auto pause.Although it may not have a significant impact, it may mislead new users without it. --- .../com/example/gsyvideoplayer/video/DanmakuVideoPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/example/gsyvideoplayer/video/DanmakuVideoPlayer.java b/app/src/main/java/com/example/gsyvideoplayer/video/DanmakuVideoPlayer.java index bede032f6..c262aa715 100644 --- a/app/src/main/java/com/example/gsyvideoplayer/video/DanmakuVideoPlayer.java +++ b/app/src/main/java/com/example/gsyvideoplayer/video/DanmakuVideoPlayer.java @@ -128,6 +128,7 @@ protected void clickStartIcon() { @Override public void onCompletion() { + super.onCompletion(); releaseDanmaku(this); }