I am having a similar issue with a Toshiba Fire TV Edition TV. My “Play next” feature has been broken for at least a week now. When the countdown expires and it tries to play the next episode I get the same error saying “An error occurred while attempting to play this video. Please check your connection and try again.” My Fire TV does not restart itself when this happens.
Client version: 8.15.3.24332
Server version: 1.22.3.4392 (Docker on unRAID)
I have tried changing/disabling various settings on the client, like automatically convert, passthrough, change default streaming quality, audio boost, etc.
I found one person saying that they were able to fix the issue by disabling the server setting “Automatically select audio and subtitle tracks” in Settings > Languages. I tried this but it didn’t resolve the issue for me.
I enabled Networking Logging on the client and have the related logs saved in case a dev needs to see them.
Here is the related stacktrace for the error:
04-22 16:25:25.708 e: Stacktrace: com.google.android.exoplayer2.ExoPlaybackException: MediaCodecAudioRenderer error, index=3, format=Format(1, null, null, audio/mp4a-latm, aac, 3752000, english, [-1, -1, -1.0], [6, 48000]), format_supported=YES
at com.google.android.exoplayer2.l0.handleMessage(SourceFile:44)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed: 0, Config(48000, 252, 432000)
at com.google.android.exoplayer2.audio.DefaultAudioSink$d.b(SourceFile:4)
at com.google.android.exoplayer2.audio.DefaultAudioSink.G(SourceFile:2)
at com.google.android.exoplayer2.audio.DefaultAudioSink.T(SourceFile:2)
at com.google.android.exoplayer2.audio.DefaultAudioSink.g(SourceFile:16)
at com.google.android.exoplayer2.audio.c0.Y(SourceFile:12)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(SourceFile:33)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:18)
at com.google.android.exoplayer2.l0.n(SourceFile:14)
at com.google.android.exoplayer2.l0.handleMessage(SourceFile:24)
... 3 more
Suppressed: com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed: 0, Config(48000, 252, 432000)
... 12 more