Priest of the Order of the Butterfly
Posts: 874 from 2007/4/9
From: Kingston upon ...
EDIT: See link in post 4 below - tutorial is a lot clearer for MorphOS beginners than my original reply.
There are many ways to skin a cat
Right-click on the desktop and select Settings>Ambient from the menu to open the Ambient Settings window.
Selecting the 'Mime' entry in the Ambient Settings window brings you to the relevant section.
Settings can be changed either for file types (video, audio, text, etc) or for individual formats (avi, divx, mp4, etc).
Assuming the user just wants to open "all video files" with MPlayer:
Double click on the "video" entry.
This brings up the Ambient Mime editor window for the 'video' entry (affects all video files).
Select 'Add' to open the 'action editor' window.
Enter a description in the 'name' field (eg 'Play with MPlayer'), then click ADD in the right hand column.
Select 'Amigados' and specify the command
run >NIL: sys:applications/mplayer/gmplayer %sp -vo cgx_overlay_gui::TINYBORDER -fs
(Note that you MUST press enter after entering the command string above. Also, you will need to change the path if your MPlayer is installed to a different location).
Select the 'event type':
- menu means that this entry will appear in the context menu if you right-click on a video file.
- double-click sets it as the default action if you double-click on a video file (probably what the OP wants)
- drag-n-drop - never used it tbh.
Click OK to close the action editor, accepting changes.
Click OK to close the Mime editor, accepting changes.
Click 'save' to save changes and close the Ambient settings window.
This command will open video files with MPlayer using overlay, with the integrated menus enabled, and playbeck set to fullscreen by default.
Regards
Rich
EDIT: For the above to work, the user will have to rename mplayer to gmplayer, as suggested in the MPlayer readme file. If this hasn't been done the string:
run >NIL: sys:applications/mplayer/mplayer -gui 1 -fs %sp
can be used instead.
Sorry for any confusion
EDIT: Corrected arguements in edited alternative. If -gui is used, all args must be passed before filename. If -gui is not used, args can be placed before or after filename. Wee-eird!
[ Edited by boot_wb 02.07.2012 - 20:04 ]www.hullchimneyservices.co.uk
UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)
Windows free since 2011!