Pies place
Would you like to react to this message? Create an account in a few clicks or log in to continue.

htpc web ui

4 posters

Go down

htpc web ui Empty htpc web ui

Post by le1ca 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.

htpc web ui Tumblr_ldo7bxPODU1qf6wp3o1_r1_500
(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
le1ca
le1ca

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

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

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

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

Post by le1ca 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
le1ca
le1ca

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

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

why do i not have an arch partition
Sigfig
Sigfig

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

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

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

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

Post by le1ca 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
le1ca
le1ca

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

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

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

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

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

i'm definitely not a linux god
le1ca
le1ca

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

Back to top Go down

htpc web ui Empty Re: htpc web ui

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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