I am trying to play videos automatically when the Raspberry Pi boots. I decided to use crontab for that:
autostart.sh file contains the following code:
xbmc-send -a "PlayMedia(/storage/videos/)"
The Raspberry Pi successfully automatically starts to play videos from
/storage/videos/ directory when it reboots.
The problem is that it plays the videos in descending order. My video files are called 1.mp4, 2.mp4, 3.mp4 and it plays 3.mp4 video first then 2.mp4 and finally 1.mp4. I need to play them in ascending order.
When I try to play them manually by going to video directory and clicking to play 1.mp4 video then it play sequentially. If you know how to resolve this problem, please let me know. It is very useful to me.