[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • Last Modified:

Movie only plays with a location value useless on the outside

<object id="VIDEO" width="640" height="360" style="position:relative; left:5px;top:5px" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="URL" value="W:\news\ScienceClub.m4v"> 
<param name="ShowDisplay" value="True"> 
<param name="AutoStart" value="True"> 
<param name="uiMode" value="full"> 
</object>

Open in new window

The following code - copied and adapted from a website - displays the movie only if the param value for "URL" is this stupid name containing the drive letter - all other attempts fail to show the movie. What must be done to make it available to everybody?

(Please see the attached code.)

Thanks!
0
DerCornet
Asked:
DerCornet
  • 2
1 Solution
 
BillDLCommented:
Are you testing this web page from your own computer?
Have you uploaded the file "ScienceClub.m4v" to a folder on your website?

For example, say you had a website at:
http://www.dercornet.com
and that the home page was:
http://www.dercornet.com/index.html

If you have your video file in a folder on your website, for example:
http://www.dercornet.com/vids/ScienceClub.m4v
then the absolute path to the video should work:
<param name="URL" value="http://www.dercornet.com/vids/ScienceClub.m4v">
OR
it might work with a URL that is relative to the page that is opening the video:
<param name="URL" value="vids/ScienceClub.m4v">

For relative URLs you sometimes have to include a leading /
<param name="URL" value="/vids/ScienceClub.m4v">
or even ./
<param name="URL" value="./vids/ScienceClub.m4v">
for it to work.

Remember that a "relative path" or "relative URL" is the path to the target from the web page where the link is, whereas an absolute path or URL is the fully qualified path that should work regardless of where it is placed.

Give this a go and see what happens.
0
 
BillDLCommented:
Thank you Gary
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now