Multiple FLV video files with single player

AI Thread Summary
The discussion revolves around a request for assistance in modifying existing code to enable the playback of multiple FLV files using a list. The user provides a basic HTML structure for embedding a Flash player and seeks to make the video filename dynamic. The goal is to change the filename parameter in the code when a user clicks on an item from a list of video files (e.g., video.flv, video1.flv, video2.flv). Suggestions include using JavaScript to achieve this functionality, with a focus on updating the query string to reflect the selected video file. The user is looking for specific coding guidance to implement this feature effectively.
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
 
Technology news on Phys.org
Can reload the page with passing the video file name in the query string
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top