Skip to content

Simple Web GUI for Omxplayer on a Raspberry Pi made in PHP

License

Notifications You must be signed in to change notification settings

adragon202/omxwebgui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Web GUI for Omxplayer on a Raspberry Pi made in PHP

Currently in alpha but should work. If you like it please give it a upvote here: http://raspberrypi.stackexchange.com/a/27805/27119

Features

  • Play/Stop videos through the browser - Also mobile browser compatible
  • All hotkeys from omxplayer mapped to the webpage
  • Multilanguage
  • Permanent playlist - Just add folders and streams
  • Search for filenames with wildcards
  • Autoplay next video
  • Mark of already viewed videos
  • Play media from a remote Subsonic Server

Requirements

sudo apt-get install php5-cli php-xml

Run

To create a simple php webserver listening on port 4321, you can change the port to whatever you want.

php -S 0.0.0.0:4321 -t YOURPATHTOOMXWEBGUIFOLDER > /dev/null 2>&1 &

Open the page with http://IPTOYOURPI:4321

Autostart

Add the following line to crontab with sudo crontab -e to start the simple php webserver on reboot

@reboot php -S 0.0.0.0:4321 -t YOURPATHTOOMXWEBGUIFOLDER > /dev/null 2>&1 &

Troubleshooting

  • Permissions for files and folders: Make sure that the root folder and the folder "tmp", where you have installed the omxwebgui, have the rights CHMOD 777. For example you install it under /home/pi/omxwebgui than the folder /home/pi/omxwebgui and /home/pi/omxwebgui/tmp need chmod 777. If that does not work for try to set all files and folders to 777 but that shouldn't be necessary.
  • If you using a own webserver that runs under www-data and you have some /dev/vchiq permission problems than you need to run sudo usermod -a -G video www-data to give that www-data user the correct permissions (thx to Sergio). More information here: http://raspberrypi.stackexchange.com/questions/19436/how-can-i-permanently-fix-dev-vchiq-permission-errors
  • If you are using a webserver maybe you need to set the owner of the files and folder to www-data if you have permission errors
  • If content from the Subsonic Server is not showing in the list, double check the given credentials. Address should not include 'http://' or ending '/'

Screenshot

alt text

About

Simple Web GUI for Omxplayer on a Raspberry Pi made in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 74.5%
  • JavaScript 16.0%
  • CSS 8.2%
  • Shell 1.3%