I am trying to create a website that will play multiple avi files with just the one avi player plugin on the right, and a list of buttons on the left which each will run a java function to change the source avi file on the HTML plugin below. So my seudo code function below:
<script>
function myFunction()
{
var filepath = "C:\hello.avi";
htmlobject = filepath;
}
So that I can press a button to run that script which will change the variable below
<OBJECT
ID="MediaPlayer"
<PARAM NAME="FileName" VALUE= FILEPATH>
<PARAM NAME="TransparentAtStart" Value="false">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="AnimationatStart" Value="true">
pluginspage="http://www.microsoft.com/isapi/redir.dll? prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
src= FILEPATH
Name=MediaPlayer
displaySize=0></embed>
</OBJECT>
So in theory after i have pressed the button changing the file path i can press play on the avi player and it will play the avi file.
So im hoping someone will know the answer to this or tell me a better way of going about this whole idea. Thank you for looking.