Multiple FLV video files with single player

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
Mike Phan
Messages
67
Reaction score
0
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
 
Physics news on Phys.org
Can reload the page with passing the video file name in the query string