2013-05-03, 09:10
Hi,
I have Raspberry Pi. I would like to play videos automatically while booting. So i decided to use crontab for that. The crontab is
"@reboot /storage/.config/autostart.sh" And the autostart.sh file contains the following code.
xbmc-send -a "PlayMedia(/storage/videos/)"
While boot the player starts to play the videos successfully which is available in "/storage/videos/". The problem is that the video plays in descending order like i have 1.mp4,2.mp4 3.mp4 files are available in /storage/videos/ the Raspberry Pi needs to play first 1.mp4 then 2.mp4 videos and finally it must play 3.mp4 instead of that it is playing first 3.mp4 videos then 2.mp4 and atlast it plays 1.mp4.
How to resolve this. It is very useful to me if it plays in ascending order. If you know how to resolve this problem please Let me know[/b]
I have Raspberry Pi. I would like to play videos automatically while booting. So i decided to use crontab for that. The crontab is
"@reboot /storage/.config/autostart.sh" And the autostart.sh file contains the following code.
xbmc-send -a "PlayMedia(/storage/videos/)"
While boot the player starts to play the videos successfully which is available in "/storage/videos/". The problem is that the video plays in descending order like i have 1.mp4,2.mp4 3.mp4 files are available in /storage/videos/ the Raspberry Pi needs to play first 1.mp4 then 2.mp4 videos and finally it must play 3.mp4 instead of that it is playing first 3.mp4 videos then 2.mp4 and atlast it plays 1.mp4.
How to resolve this. It is very useful to me if it plays in ascending order. If you know how to resolve this problem please Let me know[/b]