I’m looking for a way to create a web page only available on my home network that I can use for sharing media between multiple computers. What I want to be able and do is create a gallery of cds and movies I have on my computer and play them by clicking on a picture. I’m already familiar with HTML and CSS this is just a little beyond my experience.
(as you have found out) knowing html/css is not enough because if you
just make a page with a normal URL link (pointed at the movie’s file
on ‘your’ computer/server), the (distant) browser you click with will
only know how to “download” that file to the local computer…
what you want to do requires a way to ‘serve’ the streaming media
(like youtube does, for example) across your local network…
which i do not know how to do, but google seems to, see:
You can embed a movie into a website. Make the link under your icon image to start some local HTML document and add the following code where you want to place the movie:
Of course you have to adapt path and filenames for your movie.
You can also play sound. To play a mp3 file let your link point to a file named something.m3u which in turn contains the file to be played. Example content of something.m3u could be:
http://localhost/path/mysong.mp3
You can find a lot of info about streaming media on the internet. A starting point is here: Streaming MPEG-4 Video
I’m trying to do almost exactly that with my videos, the only difference is I’m using flash. I’ve been having some trouble with flash so I might just try using your code instead.
I haven’t done much with the music yet. What I want to do there, if it’s possible, is to take all the songs from a CD and create 1 like that will queue all of them up in something like VLC.
So far I did never try to stream flash, but I think the principle is the same. There is a meta file describing for the browser where to get the source and how to launch the plugin. There is a chapter about how to stream flash on the website I linked in my previous post.
A completely different approach: Have a look at “mjpg-streamer” (Google finds it, and a package is available from build-service). It is designed to stream webcams, but it can stream from the filesystem too. It is lightweight and easy to install/use, but unfortunately it streams just video, no sound.
I’ve got video working using the code you gave me with .m4v files.
Now I just need to figure why all of my media, so far just videos and pictures, is coming up access forbidden. If I open the page from the file manager it works fine, but if I use a web address to open it I can’t see any pictures or get any of the video to play.
I take for granted that you have a running apache2 server on your server host, right? In this case it’s a configuration issue. This would be a perfect opportunity to open a new thread in the “Networking” subforum. We are quite a bit off-topic here in Chit-Chat.
Yeah, I started in chit-chat because building a web page to use as a media server wasn’t really a Linux topic, but now it’s moved into something I need to fix in apache.