streaming video script

Discussion in 'HTML & Website Design' started by meetrajeshat, Jul 23, 2008.

  1. #1
    HI,

    I am building my personal webpage on Windows with dreamweaver 8. I am planning to put streaming videos on my website. I have all the videos in a folder. I would like to create a page with embeded movie player to play movies. Currently I am creating saperate pages for each video.

    What I want to achieve is. I will have just one page which have flv player embeded and other page which has thumbnails of video's (just a jpg file). When user clicks on thumbnail he is redirected to the page which has flv player and plays the file which user has selected. I mean can we have just one page and dynamically create streamName depending on the filename for the user selected video. rather than creating saperate HTML files for each video.

    I am using following colde to play video file 1.flv. EVerybody's advise will be greatly appreciated. Thanks a ton in advance. :)



    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="352" height="288" id="FLVPlayer">
    <param name="movie" value="FLVPlayer_Progressive.swf" />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=video/1&autoPlay=false&autoRewind=false" />
    <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=video/1&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="352" height="288" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
     
    meetrajeshat, Jul 23, 2008 IP
  2. PatMcCrackit

    PatMcCrackit Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well.. you could use a database... have the code of each embed in the database and link to a page using php such as "/showVideo.php?vidID=1"

    I honestly think I just did a horrible job of trying to explain that.. I was never good with explanations.

    PM me if you want to discuss it.. but there has to be a better way.
     
    PatMcCrackit, Jul 23, 2008 IP
  3. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's up to you whether you use this code really meetrajeshat - it won't validate, but if coding is correct it will work.

    The recommended way of embedding a flash movie in html is by using a servers-side script like PHP.

    There's loads of articles about embedding flash in webpages across the web - Google it.
     
    Divisive Cottonwood, Jul 23, 2008 IP
  4. meetrajeshat

    meetrajeshat Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi PatMccrackit and Divisive.. I did try googling it but couldn't find anything concrete. Pat I would appreciate if you can elaborate on how to use database and PHP script to generate the HTML page.

    Help Please !!!
     
    meetrajeshat, Jul 24, 2008 IP