pull/586/head
FongMi 1 year ago
parent cd38cc6e22
commit e6577fbabd
  1. 2
      app/src/main/java/com/fongmi/android/tv/player/ParseJob.java
  2. 2
      app/src/main/java/com/fongmi/android/tv/player/Players.java

@ -211,7 +211,7 @@ public class ParseJob implements ParseCallback {
private void stopWeb() {
for (CustomWebView webView : webViews) webView.stop(false);
webViews.clear();
if (!webViews.isEmpty()) webViews.clear();
}
public void stop() {

@ -159,7 +159,6 @@ public class Players implements Player.Listener, ParseCallback {
public void reset() {
position = C.TIME_UNSET;
removeTimeoutCheck();
stopParse();
retry = 0;
}
@ -316,6 +315,7 @@ public class Players implements Player.Listener, ParseCallback {
}
public void stop() {
if (parseJob != null) parseJob.stop();
if (exoPlayer != null) exoPlayer.stop();
if (exoPlayer != null) exoPlayer.clearMediaItems();
}

Loading…
Cancel
Save