htpc web ui
4 posters
Page 1 of 1
htpc web ui
Here's a project I started a month or so ago and forgot about: creating a HTPC operating system with a remote Web UI from scratch. Tonight, cannabis inspired me to finish it, and somehow, I did.
I have my old Dell desktop hooked up to my TV so I can watch pirated shows and movies. The machine runs Arch Linux and includes an Apache HTTP server with PHP. Originally, it ran Xfce and I had to VNC in to select something to watch. Now, I have xine, a media player, starting instead of the desktop environment. xine includes this cool thing where it can listen for remote connections to control playback. This lets you control it by command line, by script, or in this case, by Web interface.
(click to view larger)
When the Web UI is accessed, PHP recurses through the video folder to list available files. A custom sort function is used to allow for different filename formats while keeping episodes in order, as you can see in the screenshot.
When a filename is clicked, PHP tells xine to load and play that video. The play, pause, and stop buttons also do what you’d assume they do. The ‘hide gui’ link allows you to hide xine’s control window if it appears for some reason.
After I add video queuing and some security fixes I'll give out the source code.
I have my old Dell desktop hooked up to my TV so I can watch pirated shows and movies. The machine runs Arch Linux and includes an Apache HTTP server with PHP. Originally, it ran Xfce and I had to VNC in to select something to watch. Now, I have xine, a media player, starting instead of the desktop environment. xine includes this cool thing where it can listen for remote connections to control playback. This lets you control it by command line, by script, or in this case, by Web interface.
(click to view larger)
When the Web UI is accessed, PHP recurses through the video folder to list available files. A custom sort function is used to allow for different filename formats while keeping episodes in order, as you can see in the screenshot.
When a filename is clicked, PHP tells xine to load and play that video. The play, pause, and stop buttons also do what you’d assume they do. The ‘hide gui’ link allows you to hide xine’s control window if it appears for some reason.
After I add video queuing and some security fixes I'll give out the source code.
le1ca- Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner
Re: htpc web ui
Awesome. Will you release a finished CD image?
Svenne- Posts : 77
Power Level : 0
Join date : 2010-07-16
Age : 28
Re: htpc web ui
maybeSvenne wrote:Awesome. Will you release a finished CD image?
it's basically vanilla arch linux with alsa, xorg, xine, apache, and php though :p
le1ca- Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner
Re: htpc web ui
why do i not have an arch partition
Sigfig- Posts : 354
Power Level : 1
Join date : 2010-07-14
Age : 29
Location : where ders enemy
Level : 1 enemy
Re: htpc web ui
It'd probably work on any linux distro, as long as it has the required libs.
Svenne- Posts : 77
Power Level : 0
Join date : 2010-07-16
Age : 28
Re: htpc web ui
distros have nothing to do with libs reallySvenne wrote:It'd probably work on any linux distro, as long as it has the required libs.
just install alsa xorg xine-ui http php on any distro and itll work
le1ca- Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner
Re: htpc web ui
I say we change Travis' level to "level 9001 Linux God."
DShiznit- Posts : 157
Power Level : 5
Join date : 2010-07-16
Age : 31
Location : nowhere and everywhere
Level : 1 Minecraft Hater
Re: htpc web ui
i'm definitely not a linux god
le1ca- Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|