Plex stops playback early as if episode has finished

Plex Media Server Logs_2022-11-06_17-52-37.zip (6.9 MB)
Server Version#: 1.29.1.6316
Player Version#: 9.10.1.36024

Playback stops after a short period of time as if the episode has fished. Plex then goes to play the next episode.

I have this problem on my android-tv. The stream begins and then after a short period of time (<2m) the stream ends and then auto-plays the next episode in the series.

This occurs for different types of content:

  • Plex DVR recorded television shows
  • DVD backup copies in MKV format of series and movies

What I have tested as working:

  • Plex web client stream works
  • Plex IOS app stream works
  • Plex Android Mobile app works
  • Streaming from Netflix works on Android TV works
  • Streaming from a remote Plex server shared with me works
  • Chromecast from Windows VLC to Android TV works
  • Plex Android TV music streaming works

What I tested that does not work:

  • Plex app on Android TV playing videos is not working
  • Chromecast from Plex Web client to Android TV via Microsoft Edge is not working
  • IOS Airplay from ipad to TV via Plex IOS app is not working
  • IOS Chromecast from ipad to TV via Plex IOS app is not working
  • DLNA via Android TV Sony app from Plex server is not working

From the OP’s server log I see this:
Nov 06, 2022 17:52:11.988 [0x7ff6324a6b38] DEBUG - Failed to stream media, client probably disconnected after 442368 bytes: 32 - Broken pipe

My error message is the same in my server log:
Nov 29, 2022 14:19:10.377 [0x7ff5dd921b38] DEBUG - Failed to stream media, client probably disconnected after 16384 bytes: 32 - Broken pipe

I also have the logs for the Plex Android TV client. Here is a snippet.

11-29 14:19:04.138  i: [FFmpegExtractor] Interrupting extractor for release.
11-29 14:19:04.139  i: [FFmpegExtractor] Extractor has been released.
11-29 14:19:04.140  i: [FFmpeg] [INFO] [FFmpegExtractor] Reading whilst closed, exiting.
11-29 14:19:04.141  i: [FFmpeg] [WARN] [CacheSource] Encountered result whilst reading from source at 10522710 bytes: Immediate exit requested (-1414092869).
11-29 14:19:04.141  i: [FFmpeg] [WARN] [CacheSource] Source or buffer is still interrupted.
11-29 14:19:04.142  i: [FFmpeg] [INFO] [CacheSource] Thread has been terminated.
11-29 14:19:04.142  i: [FFmpeg] [INFO] [FFmpegExtractor] Closing demuxer context.
11-29 14:19:04.143  i: [FFmpeg] [INFO] [CacheSource] Close requested, terminating.
11-29 14:19:04.143  i: [FFmpeg] [INFO] [CacheSource] Terminating thread.
11-29 14:19:04.144  i: [FFmpeg] [INFO] [FFmpegExtractor] Source has been closed successfully.
11-29 14:19:04.144  i: [FFmpeg] [INFO] [CacheSource] Closed successfully.
11-29 14:19:04.145  e: [ExoPlayer][EventLogger] playerFailed [eventTime=46.93, mediaPos=8.49, window=0, period=0, errorCode=ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT
  com.google.android.exoplayer2.r: Source error
      at com.google.android.exoplayer2.w1.G(SourceFile:17)
      at com.google.android.exoplayer2.w1.handleMessage(SourceFile:295)
      at android.os.Handler.dispatchMessage(Handler.java:103)
      at android.os.Looper.loop(Looper.java:214)
      at android.os.HandlerThread.run(HandlerThread.java:67)
  Caused by: y4.b0: java.net.SocketTimeoutException: timeout
      at y4.u.b(SourceFile:266)
      at y4.t.b(SourceFile:161)
      at y4.p0.b(SourceFile:13)
      at com.google.android.exoplayer2.source.r0$a.load(SourceFile:26)
      at y4.i0$d.run(SourceFile:52)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
      at java.lang.Thread.run(Thread.java:919)
  Caused by: java.net.SocketTimeoutException: timeout
      at com.android.okhttp.okio.Okio$3.newTimeoutException(Okio.java:214)
      at com.android.okhttp.okio.AsyncTimeout.exit(AsyncTimeout.java:263)
      at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:217)
      at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:307)
      at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:301)
      at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:197)
      at com.android.okhttp.internal.http.Http1xStream.readResponse(Http1xStream.java:188)
      at com.android.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:129)
      at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:750)
      at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622)
      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
      at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106)
      at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30)
      at y4.u.u(SourceFile:98)
      at y4.u.b(SourceFile:13)
      ... 7 more
  Caused by: java.net.SocketException: socket is closed
      at com.android.org.conscrypt.ConscryptFileDescriptorSocket$SSLInputStream.read(ConscryptFileDescriptorSocket.java:554)
      at com.android.okhttp.okio.Okio$2.read(Okio.java:138)
      at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:213)
      ... 21 more

Any help would be appreciated to see if there is some way to make steaming video work once again. The Plex app for Android TV has had about a one-year outage for streaming video. It did work previously.

A new firmware version was released for my Asus router. After the upgrade Plex now plays videos again. This makes it seem like this networking timeout was caused by the router.