Click to See Complete Forum and Search --> : How to callup and play a video file?


CalifNina
06-19-2003, 06:22 PM
Looking for code examples on how to callup and play a video file (avi, mpeg, etc.) ... maybe by perhaps pressing a button, link, drop-down select box, anything of that nature.

I have searched within this forum under keywords "playing video", but have not located what I need yet. Some threads are way beyond my grasp and others were too abstract, thus I am asking for help in finding stuff that's already in existance, out there somewhere.

Does anyone have any code they could share or point me to url's that show various examples?

Thank you.

CrazyGaz
06-19-2003, 06:36 PM
<embed src="myavi.avi"> will play the move, to do it I would use.

<script language="javascript">

function changeMovie(name)
{ document.movie.src = name & ".avi"}

</script>

then where the movie is going to go do

<embed src="myavi.aci" name="movie">

then have where the link is <a onClick="changeMovie('myavi2')"> I think that should work. although embed may be embeded I forget :/

Gaz

CalifNina
06-20-2003, 01:15 PM
Gaz, thank you for the reply, not quite sure I follow though??

I'll try playing with it. Will see if I get it positioned in the proper places and to work.