<object> code in HTML

DavidJT

Commendable
Jun 13, 2016
3
0
1,510
This is the <object> code in a web site folder "foldera" which plays a wmv file.
It works OK.

<OBJECT ID="MediaPlayer" WIDTH="720" HEIGHT="540" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
<STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="cold.wmv">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="true">
<EMBED TYPE="application/x-mplayer2" SRC="cold.wmv" NAME="MediaPlayer"
WIDTH="720" HEIGHT="540" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="1"> </EMBED>
</OBJECT>

I have identical coding in a second folder to play the same wmv in "folderb".
It would save web page space (55 kllobytes) if I could change the <object> code
in the Folderb so that it plays the wmv file in foldera
I could then remove the code and the wmv file from Folderb.
I cannot find a way to modify the <object> code in foldera to do this.
Presumeably by changing the Parameter "File Name" VALUE="cold.wmv"
But it will not work if I use "File Name" VALUE="../foldera/cold.wmv"
Can you help ?


 
Solution
Apologies: Took another look and re-thought things a bit.

You are using ../ to indicate up one folder where both foldera and folderb are subfolders within that folder - correct?

Regarding cold.wmv and "filename".

See if using the full pathname to cold.wmv helps.

Likewise look at SRC= the full pathname is needed there also.

Reference:

http://www.ist.rit.edu/~rpv/local/tutorials/embedding_video/

See the sentence below the Windows Media section.

One other note: Another thing to verify is that the necessary rights are intact while you are in foldera and getting data from folderb. However, I would expect you would get some error message if access rights were the problem.

DavidJT

Commendable
Jun 13, 2016
3
0
1,510
MERGED QUESTION
Question from DavidJT : "<object> code on web page"

In "foldera" I have this code. It works OK.
I have the identical code in "folderb"
How do I change the code in "folderb" so that it plays the wmv file in foldera ?
It would save 50 kilobyes space'
<OBJECT ID="MediaPlayer" WIDTH="720" HEIGHT="540" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
<STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="cold.wmv">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="true">
<EMBED TYPE="application/x-mplayer2" SRC="cold.wmv" NAME="MediaPlayer"
WIDTH="720" HEIGHT="540" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="1"> </EMBED>
</OBJECT>
 

DavidJT

Commendable
Jun 13, 2016
3
0
1,510
Thanks for the reply but I already said .......

But it will not work if I use "File Name" VALUE="../foldera/cold.wmv"

Is this correct format ?
 
Apologies: Took another look and re-thought things a bit.

You are using ../ to indicate up one folder where both foldera and folderb are subfolders within that folder - correct?

Regarding cold.wmv and "filename".

See if using the full pathname to cold.wmv helps.

Likewise look at SRC= the full pathname is needed there also.

Reference:

http://www.ist.rit.edu/~rpv/local/tutorials/embedding_video/

See the sentence below the Windows Media section.

One other note: Another thing to verify is that the necessary rights are intact while you are in foldera and getting data from folderb. However, I would expect you would get some error message if access rights were the problem.

 
Solution