this works, plays mp3's in sequential order...i trying randomize make playlists different (shuffle feature), , stuck...
have far-
creates start/run shortcut in menu/sound & video (load mp3's in music/playlist directory/folder, , run shortcut. controls work in terminal window: e.g., "q"=quite (or close terminal), "spacebar"= pause play, "-" , "+" volume. minimize terminal window taskbar normal desktop use)
create mp3 music playlist directory open add below, save 'ctrl+ x', 'y', 'enter' open add below, save 'ctrl+ x', 'y', 'enter' chmod
have far-
creates start/run shortcut in menu/sound & video (load mp3's in music/playlist directory/folder, , run shortcut. controls work in terminal window: e.g., "q"=quite (or close terminal), "spacebar"= pause play, "-" , "+" volume. minimize terminal window taskbar normal desktop use)
create mp3 music playlist directory
code: select all
mkdir ./music/playlist
code: select all
sudo nano /usr/share/applications/mp3player.desktop
code: 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.png
code: select all
nano ./mp3.sh
code: select all
#!/bin/bash setterm -cursor off setterm -clear file in $1/* omxplayer "$file" > /dev/null done setterm -cursor on
code: select all
sudo chmod +x mp3.sh
this adds shuffle function (but breaks terminal pause/play, , volume controls. stop, click 'x in terminal). volume has used @ default, or controlled externally, , there no 'pause' capability.
trying figure out how restore omxplayer terminal controls (without breaking shuffle), , how terminal display current mp3 playing (after solve controls issue)...
trying figure out how restore omxplayer terminal controls (without breaking shuffle), , how terminal display current mp3 playing (after solve controls issue)...
code: select all
nano ./mp3.sh
code: select all
#!/bin/bash setterm -cursor off setterm -clear file in $1/* < <(shuf -ze "$1"/*.mp3) omxplayer "$file" > /dev/null done setterm -cursor on
raspberrypi
Comments
Post a Comment