htpc web ui

View previous topic View next topic Go down

htpc web ui

Post by le1ca on Sun Dec 19, 2010 6:31 am

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. Smile
avatar
le1ca

Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner

View user profile

Back to top Go down

Re: htpc web ui

Post by Svenne on Sun Dec 19, 2010 7:11 am

Awesome. Will you release a finished CD image?
avatar
Svenne

Posts : 77
Power Level : 0
Join date : 2010-07-16
Age : 22

View user profile

Back to top Go down

Re: htpc web ui

Post by le1ca on Sun Dec 19, 2010 3:21 pm

Svenne wrote:Awesome. Will you release a finished CD image?
maybe
it's basically vanilla arch linux with alsa, xorg, xine, apache, and php though :p
avatar
le1ca

Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner

View user profile

Back to top Go down

Re: htpc web ui

Post by Sigfig on Mon Dec 20, 2010 12:48 am

why do i not have an arch partition
avatar
Sigfig

Posts : 354
Power Level : 1
Join date : 2010-07-14
Age : 23
Location : where ders enemy
Level : 1 enemy

View user profile

Back to top Go down

Re: htpc web ui

Post by Svenne on Mon Dec 20, 2010 1:53 pm

It'd probably work on any linux distro, as long as it has the required libs.
avatar
Svenne

Posts : 77
Power Level : 0
Join date : 2010-07-16
Age : 22

View user profile

Back to top Go down

Re: htpc web ui

Post by le1ca on Mon Dec 20, 2010 1:54 pm

Svenne wrote:It'd probably work on any linux distro, as long as it has the required libs.
distros have nothing to do with libs really
just install alsa xorg xine-ui http php on any distro and itll work
avatar
le1ca

Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner

View user profile

Back to top Go down

Re: htpc web ui

Post by DShiznit on Fri Dec 24, 2010 1:16 pm

I say we change Travis' level to "level 9001 Linux God."
avatar
DShiznit

Posts : 157
Power Level : 5
Join date : 2010-07-16
Age : 25
Location : nowhere and everywhere
Level : 1 Minecraft Hater

View user profile

Back to top Go down

Re: htpc web ui

Post by le1ca on Fri Dec 24, 2010 8:43 pm

i'm definitely not a linux god
avatar
le1ca

Posts : 273
Power Level : 11
Join date : 2010-07-15
Level : 50 level questioner

View user profile

Back to top Go down

Re: htpc web ui

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum