When playing an RTSP stream with exoplayer, an IllegalStateException exception occurs
When using exoplayer to play an RTSP stream, and then disconnecting the network or interrupting the RTSP stream, the checkStateNotNull exception will be randomly reported; Version: media3-exoplayer:1.1.1; The details are as follows: E/AndroidRuntime: FATAL EXCEPTION: ExoPlayer:Playback Process: com.join.driving, PID: 28548 java.lang.IllegalStateException at androidx.media3.common.util.Assertions.checkStateNotNull(Assertions.java:117) at androidx.media3.exoplayer.rtsp.RtspMessageChannel.send(RtspMessageChannel.java:190) at androidx.media3.exoplayer.rtsp.RtspClient$MessageSender.sendRequest(RtspClient.java:481) at androidx.media3.exoplayer.rtsp.RtspClient$MessageSender.sendSetupRequest(RtspClient.java:380) at androidx.media3.exoplayer.rtsp.RtspClient.continueSetupRtspTrack(RtspClient.java:296) at androidx.media3.exoplayer.rtsp.RtspClient.setupSelectedTracks(RtspClient.java:221) at androidx.media3.exoplayer.rtsp.RtspMediaPeriod.maybeSetupTracks(RtspMediaPeriod.java:478) … Read more