View Single Post
Posts: 45 | Thanked: 45 times | Joined on Jul 2010 @ Berlin
#1
Yet another mplayer interface !


As far as I know the media player is closed source and you have no chance to change the user interface.

But mplayer is flexible. Therefore I have written a python script and some shell scripts which control mplayer in slave mode via touch-screen. The keyboard is not necessary.

You can switch between the two menus by touching the lower left corner of the touch screen.

Here is an image how to control mplayer in virtual menu 1:


Here is an image how to control mplayer in virtual menu 2:


To quit mplayer press menu 2 (lower left corner) and then press quit (upper left corner).

Since I created the package by hand without scratchbox I am not sure if all dependencies are met. Let me know if something is missing.

Here is the package:
http://torsten-traenkner.de/wissen/n..._1.0_armel.deb

Local installation:
Code:
wget http://torsten-traenkner.de/wissen/n900/mplayer-touchcontrol_1.0_armel.deb
sudo gainroot
dpkg -i mplayer-touchcontrol_1.0_armel.deb
To use the scripts open a terminal and use "mm". For example:
Code:
mm /home/user/MyDocs/.videos/Nokia_N900.mp4

Currently mplayer is slow. Therefore the scripts might not be that useful. Maybe it is better to integrate the touch-screen interface in vlc.

The code can also be used for other applications.
Code:
The main script is:
/opt/maemo/usr/bin/mplayer-touchcontrol/touchscreenEvents.py

it reads the touch screen events from the touch screen device

/dev/input/ts
Torsten

Last edited by TorstenT; 2010-07-30 at 22:33.
 

The Following 7 Users Say Thank You to TorstenT For This Useful Post: