If I am incorrect in this assumption please enlightenment me on how I can go about doing this

~Jeff
Jeff - it took me a while to figure it out too - there are quite a few controls available - here are the key bindings published on the OMXBuilds web page. (I don't have access to a system to confirm these at the moment.) I think these will help you.JeffHoogland wrote:Am I correct in assuming OMXPlayer currently has zero support for play/pause/exit while it is playing a media file?
If I am incorrect in this assumption please enlightenment me on how I can go about doing this
~Jeff
If you typed the contents of the .desktop file (not 'cut & pasted'), check there are no typos! For example, if you misspell the word 'Application', you will not get an icon, and there's no warning that the .desktop file is not valid.RPiNN1 wrote:I've tried framil's solution on Raspbian Wheezy but it doesn't work for me.
I don't have an icon in the desktop 'start' menu and if I right-click a file and choose 'open with' omxplayer isn't listed. The omxplayer.desktop file does appear in the correct directory.
I can launch a file by passing it the 'omxplayer -o hdmi' parameter via the command line box in the custom command tab, but once launched. I don't have any keyboard controls.
~Gary
Just clicking on OMXPlayer from your desktop start menu will give the result you describe - same as if you type only 'omxplayer' on a command line. But if you right-click on the file you wish to play, you should see the OMXPlayer icon (or select 'Open With') - click on that. Should work - and you still have the keyboard controls.RPiNN1 wrote:I've tried again by simply cutting/pasting framil's script into a new file, and now I'm getting somewhere.
My next question is - what do I do with it now?
I'm okay with invoking omxpalyer from a command line but if I click on the desktop icon that's been created a terminal appears for about a second and disappears.
What should be happening?
~Gary
Code: Select all
Categories=AudioVideo;Player;
framil wrote:I could not JeffHoogland's solution to work in Raspbian, but a couple of changes made it work for me:
Code: Select all
[Desktop Entry]
Type=Application
Name=OMXPlayer-HDMI
Categories=AudioVideo;Player;
Exec=xterm -fullscreen -fg black -bg black -e omxplayer -o hdmi -r %f
Terminal=false
Icon=/usr/share/icons/nuoveXT2/96x96/categories/applications-multimedia.png
Code: Select all
[Desktop Entry]
Type=Application
Name=OMXPlayer
Categories=AudioVideo;Player;
Exec=xterm -fullscreen -fg black -bg black -e omxplayer -o local -r %f
Terminal=false
Icon=/usr/share/icons/nuoveXT2/96x96/categories/applications-multimedia.png
Code: Select all
videoPlayer = '/usr/bin/lxterminal -e /usr/bin/omxplayer '
command = videoPlayer + '\x22' + <mediafile> + '\x22'
subprocess.Popen(command, shell=True)
Code: Select all
[Desktop Entry]
Type=Application
Name=OMXPlayer
Exec=bash /home/pi/scripts/videoplayer %f
Categories=AudioVideo;
MimeType=video/mp4
Terminal=false
Encoding=UTF-8
Icon=applications-multimedia
NoDisplay=false
Code: Select all
#!/bin/bash
lxterminal -t "OMXPlayer (Video Control)" -e "omxplayer -b --display :0 \"$1\""