[solved] Enabling shuffling MP3 music player for Jessie
Posted: Thu May 05, 2016 5:40 pm
This works, but just plays the mp3's all in sequential order...I am trying to randomize it to make playlists that are always different (shuffle feature), and I am stuck...
This is what I have so far-
This creates a start/run shortcut in Menu/Sound & Video (load just the mp3's in Music/playlist directory/folder, and then run shortcut. Controls work in the terminal window: e.g., "q"=quite (or close terminal), "spacebar"= pause play, "-" and "+" for volume. Simply minimize terminal window to taskbar for normal desktop use)
Create mp3 music playlist directory
open
Add below, then save with 'ctrl+ x', then 'y', then 'enter'
open
Add below, then save with 'ctrl+ x', then 'y', then 'enter'
Chmod
This is what I have so far-
This creates a start/run shortcut in Menu/Sound & Video (load just the mp3's in Music/playlist directory/folder, and then run shortcut. Controls work in the terminal window: e.g., "q"=quite (or close terminal), "spacebar"= pause play, "-" and "+" for volume. Simply minimize terminal window to taskbar for normal desktop use)
Create mp3 music playlist directory
Code: Select all
mkdir ./Music/playlistCode: Select all
sudo nano /usr/share/applications/mp3player.desktopCode: Select all
[Desktop Entry]
Type=Application
Name=MP3 Playlist
Categories=AudioVideo;Player;
Exec=lxterminal --command "./mp3.sh Music/playlist/."
Terminal=false
Icon=/usr/share/icons/nuoveXT2/96x96/apps/music-player.pngCode: Select all
nano ./mp3.sh
Code: Select all
#!/bin/bash
setterm -cursor off
setterm -clear all
for file in $1/*
do
omxplayer "$file" > /dev/null
done
setterm -cursor onCode: Select all
sudo chmod +x mp3.sh