diff --git a/app/src/main/java/com/fongmi/android/tv/player/Players.java b/app/src/main/java/com/fongmi/android/tv/player/Players.java index c59df0f79..14a3aeea0 100644 --- a/app/src/main/java/com/fongmi/android/tv/player/Players.java +++ b/app/src/main/java/com/fongmi/android/tv/player/Players.java @@ -13,6 +13,7 @@ import android.text.TextUtils; import androidx.annotation.NonNull; import androidx.media3.common.PlaybackException; import androidx.media3.common.Player; +import androidx.media3.common.util.Log; import androidx.media3.exoplayer.ExoPlayer; import androidx.media3.exoplayer.analytics.AnalyticsListener; import androidx.media3.exoplayer.util.EventLogger; @@ -366,14 +367,14 @@ public class Players implements Player.Listener, IMediaPlayer.Listener, Analytic } public void start(Result result, boolean useParse, int timeout) { - if (result.hasMsg()) { - ErrorEvent.extract(result.getMsg()); - } else if (isIllegal(result.getRealUrl())) { - ErrorEvent.url(); - } else if (result.getParse(1) == 1 || result.getJx() == 1) { + if (result.getParse(1) == 1 || result.getJx() == 1) { stopParse(); parseJob = ParseJob.create(this).start(result, useParse); this.timeout = timeout; + } else if (result.hasMsg()) { + ErrorEvent.extract(result.getMsg()); + } else if (isIllegal(result.getRealUrl())) { + ErrorEvent.url(); } else { this.timeout = timeout; setMediaSource(result);