Apple tv media position

Hello everyone,

I would like, if I am watching a program on the Apple TV, that the Apple TV stops playing, for example 2 minutes before the end of the program.
The problem I encounter is that ‘media position’ cannot be updated automatically or manually!

I’ve looked around on the internet but I can’t find a working solution anywhere. It should also be possible to pause and resume watching.

Is there a solution for this somewhere?
Thanks for every response.