i dont know if im the only one but the current autoplay feature is pretty useless since it only shows that prompt after the show ends. I want to suggest a better way for more of like a netflix type “next episode” feature when the credits starts rolling. This should work in alot of cases and if not it falls back to the old method.
Basically two if statements that have to be true:
Playback is more than 95%? finished & Picture is more than 90%? black for atleast x seconds.
I guess these values could be tweaked. But for a 45 minute show that prompt could only trigger at 42:45 or later. I guess thats reasonable since the watched status is set at 90% playback.
The second argument could be checked with a relative bitrate since black scenes consume alot less of a bitrate than normal scenes. But other methods would also be possible.
As an example for the stated method:
Lets say a 20GB File has an average bitrate of 20Mbit. When the credits roll bitrate drops to less than 0.8Mbit with credits. This drop in Bitrate could be easily detected and if its longer than x seconds and the average of that is under the relative threshold that would be an good indicator.
Netflix can do this because they know when the credits appears since everyone is viewing the same video. Plex users may not all have the same version of the file so credits could appear at different times, or maybe not appear at all.
So you want to see the prompt for 2 minutes and 15 seconds?
Thats why it should check these these statements in the player. So its adaptive for every file. Like it does when setting the watched status after 90%.
Autoplay would automatically start after 10 seconds just like now or after user input.
So either that or the user could set a custom value in their settings. I would be okay with both.