Help please- playing a new file if one is already displayed

HI all,
apologies up front im learning…
Im trying to get working the LED matrix with some python code…im teaching myself as i go along…trail/error coding :slight_smile:
I have managed to get the RGB working on boot and displaying a Gif file…

What i cannot work out is how to play a new file if one is already displaying/running?
Can someone help me out please? or even point to a link where i can research?
thx in advance!