Starting a movie file automaticaly at startup

  • Hello there, I strugle a little with a configuration for automaticaly starting one videofile when Kodi is fully loaded. It's for an art installation in a museum.

    I work with different screens and different RaspberryPi (2,3,4 and 5) and I use a bash-script in .config/autostart.sh.

    Here is the script: "(sleep 10; kodi-send --action="PlayMedia(/storage/path/to/your/movie.mp4)") &"

    The problem: it keeps me asking when Kodi is loaded to resume the file or to start at the beginning. In the settings I have set the default action to "resume".

    It would be better that the file starts immediately without the intervention of keyboard confirmation. Thank you for your suggestions.