You can create an interface lua script that will change the file to play every 5 seconds. (it can be an interface script or just an extenssion that run when launched).
This is fairly easy to do using the playlist obejct.
You can have a look at playlist object methods called next(), random(), ...