Welcome to Geeklog, Anonymous Thursday, July 18 2024 @ 10:54 pm EDT

Geeklog Forums

best way to embed media file ??


what is the best way to embed media file like .wmv, mpeg etc in a webpage
that will work with any webhosting option and without being resourcehungry

thus i do not mean exactly streaming file, that is, viewers can wait till the file is entirely downloaded.

i will like to know but what hosts mean when they say support media files - does
a file ( .wmv, .mpeg ) uploaded via ftp and linked via html not work always irrespective of whether the hosts supports or not ?

however I have a strange problem with .wmv file -
when i create a test.html with i can see it nicely by opening the test.html
if however i access the page via webserver ( apache / linux ) eg
the media player shows up with a black screen with audible audio but
the video cant be seen.

which code is the best ( will work on most settings )

while i have used the simple
width="320" height="240" vspace="10" hspace="20"
align="left" />

i find codes like

Src="test.wmv"> ........ etc etc

and like ( which presumably needs live connection even for testing )

STANDBY="Loading Microsoft Windows Media Player components..."

................ etc etc

thus my questions are
1) what is the best code to embed a media file like mpeg,.wmv etc
2) why does .wmv file shows up in c:/win/desktop/test.html but not in http://mysite.com/test.html
and another questions :
3) does the file upload utility of GL be linked such that media files on clicking open in a page with an
embedded player ( eg win media player )


Status: offline


Forum User
Full Member
Registered: 05/26/03
Posts: 329
See if that works for you. Just edit the embed path. Uses RealPlayer plugin.

Text Formatted Code
<object id="myMovie" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="309" width="538">
<param name="controls" value="ImageWindow">
<param name="console" value="_master">
<param name="center" value="0">
  <param name="_ExtentX" value="14235">
  <param name="_ExtentY" value="8176">
  <param name="AUTOSTART" value="0">
  <param name="SHUFFLE" value="0">
  <param name="PREFETCH" value="0">
  <param name="NOLABELS" value="0">
  <param name="LOOP" value="0">
  <param name="NUMLOOP" value="0">
  <param name="MAINTAINASPECT" value="0">
  <param name="BACKGROUNDCOLOR" value="#000000">
        <embed name="myMovie" src="http://path/to/your/media/file.wmv" height="250" width="540" nojava="true" controls="ImageWindow" console="_master" center="true" pluginspage="http://www.real.com/"></embed></object>

GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.

All times are EDT. The time is now 10:54 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content