Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Multiple FLV video files with single player

  1. Sep 8, 2009 #1
    Hi,

    Here is code that can play a single FLV file:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=7,0,0,0"
    type="application/x-shockwave-flash" width="100%" height="570" align=middle />
    <param name="movie" value="player.swf?file=videofile&autostart=true" />
    </object>

    I want to make a list:
    video.flv
    video1.flv
    video2.flv

    Anytime I click on each item of the list, for example video1, the "file = videofile" will become "file=video1.flv". In other words, I want to make the "filename" as variable.
    I think it is possible for javascript, but I don't know how to write the code.

    ANYONE CAN HELP? PLEASE!

    Thanks in advance.
    Mike
     
  2. jcsd
  3. Sep 8, 2009 #2
    Can reload the page with passing the video file name in the query string
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook