Skip to main content
March 2, 2009
Answered

Still need FLV. help

  • March 2, 2009
  • 3 replies
  • 349 views
I need to make flv> LIBRARY USING DREAMWEAVER, ALL THE FLV. VIDEO FILES ARE ON MY HOME SERVER AND ALL LESS THAN 90 MEGS. pLEASE HELP, i POSTED A WEEK AGO AND HAVE YET TO GET A REPLY OTHER THAN MY OWN.tHANKS
This topic has been closed for replies.
Correct answer Newsgroup_User
doughuffman11181 posted in macromedia.dreamweaver.appdev

> How do I set up a folder in my webroot folder to save my flv
> video's in and the video's show in list form on my website where I
> can just log onto my website, choose a video from the list, click
> it, and be directed to another page that will display the video in
> progresive download?

Got PHP?

If so, here is a very basic example you could save as index.php in the
folder that contains the .flv files (beware of word wrap).

Oops. I just realized you asked for "list form", but I already did
this as a table. Oh well, it should help you get started.

<?php
echo "<html><head><title>File list</title></head><body>\n";
echo "<table border=1 cellspacing=0 cellpadding=2><tr><th>Filename</th><th>Size</th><th> </th></tr>\n";
foreach (glob("*.flv") as $filename) {
$size = filesize($filename);
printf('<tr><td><a href="%s">%s</a></td><td>%2s</td>',$filename,$filename, $size);
printf('<td><a href="player.php?filename=%2s">View</a></td></tr>' ."\n",$filename, $filename);
}
echo "</table></body></html>";
?>

The above will allow you to click the filename to download the video
or use a View link to player.php. player.php is a page with your
Flash video player and $_GET['filename'] will contain the filename.

Assuming you're using one of the CS3 or CS4 FLVPlayers, you should be
able to replace all instances of:

&streamName=someVideoFilename>

with:

&streamName=<?php echo $filename;?>

You /might/ need to strip off the ".flv" from the filename in
player.php. If so, pathinfo() can provide the basename.

I leave security considerations and sanitization of user input
($_GET) to you.



--
Mark A. Boyd
Keep-On-Learnin' :)

3 replies

Newsgroup_UserCorrect answer
Inspiring
March 3, 2009
doughuffman11181 posted in macromedia.dreamweaver.appdev

> How do I set up a folder in my webroot folder to save my flv
> video's in and the video's show in list form on my website where I
> can just log onto my website, choose a video from the list, click
> it, and be directed to another page that will display the video in
> progresive download?

Got PHP?

If so, here is a very basic example you could save as index.php in the
folder that contains the .flv files (beware of word wrap).

Oops. I just realized you asked for "list form", but I already did
this as a table. Oh well, it should help you get started.

<?php
echo "<html><head><title>File list</title></head><body>\n";
echo "<table border=1 cellspacing=0 cellpadding=2><tr><th>Filename</th><th>Size</th><th> </th></tr>\n";
foreach (glob("*.flv") as $filename) {
$size = filesize($filename);
printf('<tr><td><a href="%s">%s</a></td><td>%2s</td>',$filename,$filename, $size);
printf('<td><a href="player.php?filename=%2s">View</a></td></tr>' ."\n",$filename, $filename);
}
echo "</table></body></html>";
?>

The above will allow you to click the filename to download the video
or use a View link to player.php. player.php is a page with your
Flash video player and $_GET['filename'] will contain the filename.

Assuming you're using one of the CS3 or CS4 FLVPlayers, you should be
able to replace all instances of:

&streamName=someVideoFilename>

with:

&streamName=<?php echo $filename;?>

You /might/ need to strip off the ".flv" from the filename in
player.php. If so, pathinfo() can provide the basename.

I leave security considerations and sanitization of user input
($_GET) to you.



--
Mark A. Boyd
Keep-On-Learnin' :)
March 3, 2009
I record with 4 camera's at home 24/7. Each recording is reset every hour to give me 24 61 meg video's der day. I am running Adobe flash media server on my home server with a domain forwarded to my website on my home server(running windowsxp pro) and it all works great. I want to setup like a video libary on my server using dreamweaver to allow me to log onto my home server from a remote pc and watch the video's without downloading them to view them.
My question.. How do I set up a folder in my webroot folder to save my flv video's in and the video's show in list form on my website where I can just log onto my website, choose a video from the list, click it, and be directed to another page that will display the video in progresive download? The reason Im doing this may make more sence than my question. Im away from home a lot and I have security camera's setup and want to be able to watch the video's from anywhere through my website hosted on my home pc. Kinda like a Mini youtube for private use only. As my home server saves the video's in a folder on my pc, I want to be able to watch the video without doing the remote access thing and setting each video up with its own player and then adding it to my website. I hope this helps.
Inspiring
March 2, 2009
I don't understand your question. Can you please try again?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"doughuffman11181" <webforumsuser@macromedia.com> wrote in message
news:gohpoq$pmc$1@forums.macromedia.com...
> I need to make flv> LIBRARY USING DREAMWEAVER, ALL THE FLV. VIDEO FILES
> ARE
> ON MY HOME SERVER AND ALL LESS THAN 90 MEGS. pLEASE HELP, i POSTED A WEEK
> AGO
> AND HAVE YET TO GET A REPLY OTHER THAN MY OWN.tHANKS
>