Browse movies like tv channels



So this may sound like an odd request but I have watched more movies that I own on tv than I care to admit. There is something about channel surfing and stopping on an in progress movie that you just don’t get from selecting a title from a list.

So I would like to write an addon that Everytime I push the up or down arrow randomly selects a movie and a random starting position in the first say 10 minutes of a movie.

I’m just not sure how to go about doing this. I’ve written add-ons before and am quite proficient with python I’m just struggling where to start with this. So if someone could help with the framework of adding a button on the main selection, ie movies tv, music, etc that then opens a random movie from the collection plays it and rebinds the up down keys to play a different movie, I would greatly appreciate it.

Thank you