Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 07:42 am EST
Geeklog Forums
best way to embed media file ??
Balina
Anonymous
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
http://mysite.com/test.html
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
ID=MediaPlayer
Name="mp_426289569"
Width="400"
Height="311"
Src="test.wmv"> ........ etc etc
and like ( which presumably needs live connection even for testing )
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
................ 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 )
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
http://mysite.com/test.html
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
ID=MediaPlayer
Name="mp_426289569"
Width="400"
Height="311"
Src="test.wmv"> ........ etc etc
and like ( which presumably needs live connection even for testing )
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
................ 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 )
10
9
Quote
Status: offline
vadertech
Forum User
Full Member
Registered: 05/26/03
Posts: 329
See if that works for you. Just edit the embed path. Uses RealPlayer plugin.
<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.
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.
5
8
Quote
All times are EST. The time is now 07:42 am.
- 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