Let me start by let you all know that I am by no means an expert in web dev. I have dabbled here and there over the years in an effort to put my core database design skill to use.
Here is my situation:
I just rebuilt an older PC from the ground up and installed windows 7 Ultimate on it to use only as a media web server. I install IIS7, Media Services
, Smooth Stream Extensions
and Bit Rate Throttling Extensions on it. I ensured it was up to date with dotNet 3.5 and 4.0 as well as configured it for .ASP and CGI. Bottom line it is ready to rock and do its thing.
Now, I have a large number of videos that I would like to be able to watch via http while traveling. I use a home media solution for the house and have everything connected and sharing beautifully so I am familiar with file formats, containers and encoding.
Here is tricky part number 1
, the files are in all sorts of formats, the majority are in .AVI, .MKV and .MP4.
What I would like to do is have a webpage that I can use to list all the files that are on the server and when a linked movie title is clicked a new page/tab opens and loads the correct embedded player and streams the file for my viewing pleasure.
I have been able to get this to work no problem locally with Windows Media files (.wmv, .avi and even .mp4) Still need to do some off site testing to verify but it is working via my dynamicDNS host and them back so I think I am good there.
That only leaves tricky part number 2
, the .mkv files (I really do not want to spend hours converting them to flash), for which I found that the new Divx Web Player
, I have found the solution I think. My issue now is avoiding making a separate webpage for each file. What I would like to do is pre can a template page with null "", source values and then pass them to the template when the link is clicked and the page opened.
I was able to do this with the other file formats by using the following.
font-family:Arial, Helvetica, Sans-Serif;
<body bgcolor = "#ffffcc" text = "#000000">
<object id='mediaPlayer' width="600" height="534"
standby='Loading Microsoft Windows Media Player components...'
<param name='fileName' value="" />
<param name='animationatStart' value='true' />
<param name='transparentatStart' value='true' />
<param name='autoStart' value="true" />
<param name='showControls' value="true" />
<param name='loop' value="false" />
u1 = window.location.toString();
u2 = u1.split("#");
videofile = u2;
And passing the video fileName as part of the link.
I am able to get the Divx player to display videos if I hard code the source file into the html as follows:
<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="640" height="368" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="custommode" value="none" />
<param name="mode" value="zero" />
<param name="previewImage" value="webmedia\CoverArt\Arrested Development.jpg" />
<param name="autoPlay" value="false" />
<param name="src" value="http://tvids.no-ip.org/MyTest.mkv" />
I have be researching it for 3 days now and it is driving me crazy. I am hoping that there is a java or php guru out there that writes CMS or something that could help me out.
Thanks in advance.