snaums
/
PiPlayer
Archived
1
0
Fork 0
Browse Source

minor fix in setup.sh

master
Stefan Naumann 5 years ago
parent
commit
41421df640
  1. 31
      README.md
  2. 3
      setup.sh

31
README.md

@ -6,20 +6,39 @@ OMXPlayer is a quite basic player using the hardware decoding features of the Ra
The file ```dbuscontrol.sh``` is not written by me! I take no authorship in that bash-skript. I copied it from [popcornmix's repository](https://github.com/popcornmix/omxplayer)
## Technical mumbo-jumbo
## Setup
PiPlayer quite litterely calls omxplayer and communicated to it via the DBus-interface. There are some functions not present in the GUI, which could be reached via the ```dbuscontrol.sh```-bash skript.
You will need the following packages installed on your system:
- FLTK (fltk1.3)
PiPlayer uses (pyFLTK)[http://pyfltk.sourceforge.net/] as a binding to FLTK for Python. At least under Arch Linux ARM there is no package for pyFLTK. Therefore you will need to install pyFLTK. This can be done using the ```setup.sh``` file in this directory. Try (without root-priviliges):
The window is placed on the screen and omxplayer is called with the ```--win``` parameter to fit exactly inside the window. On resize of the window a DBus-interface is called to adjust for the new size of the window. That works well for maximizing, resizing or moving the window, but not for restoring it from maximized setting to normal. For that reason the OMXPlayer-output cannot be placed in the background, whereas the player-window can be in the background.
```
bash setup.sh prepare
```
## Usage
Then you can try PiPlayer without "installing", or install it with the command:
You need the ```pyFLTK```-package for your Python-installation. Best to get it from the website (at least ArchLinux ARM) does not have the package in its repositories. For pyFLTK to work you of course need also the FLTK-package of your distribution (fltk1.3).
```
bash setup.sh install
```
Then you should be able to call it via a CPython3-interpreter (as far as I know the pypy-interpreter does not support pyFLTK):
This will need root-privileges. By default it will copy the files to ```/opt/piplayer/```. Try setting PiPlayer as default player for HD-files in your file manager.
## Usage
You should be able to call it via a CPython3-interpreter (as far as I know the pypy-interpreter does not support pyFLTK):
```
python piplayer.py filename
```
You can also give parameters which will be directly handed to omxplayer on startup.
## Technical mumbo-jumbo
PiPlayer quite litterely calls omxplayer and communicated to it via the DBus-interface. There are some functions not present in the GUI, which could be reached via the ```dbuscontrol.sh```-bash skript.
The window is placed on the screen and omxplayer is called with the ```--win``` parameter to fit exactly inside the window. On resize of the window a DBus-interface is called to adjust for the new size of the window. That works well for maximizing, resizing or moving the window, but not for restoring it from maximized setting to normal. For that reason the OMXPlayer-output cannot be placed in the background, whereas the player-window can be in the background.

3
setup.sh

@ -42,7 +42,7 @@ install)
if [ ! -f $piplayer ]
then
mkdir $piplayer
cp src/* $piplayer
cp -r * $piplayer
fi
echo "dbusconfig=\"$dbusconfig\"
@ -66,6 +66,7 @@ prepare)
fi
;;
doc)
mkdir doc
doxygen Doxyfile
;;
*)