Posts: 758
Location: between here an somewhere else
|
ok this will embed the file and play it on a windows media player upon the end user pressing the play button
HTML Code:
<!-- begin embedded WindowsMedia file... -->
<object id='mediaPlayer' width="320" height="285"
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'>
<param name='fileName' value="http://servername/path/to/media.file">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="false">
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://servername/path/to/media.file" autostart="false" designtimesp='5311' loop="false">
</embed>
</object>
<!-- ...end embedded WindowsMedia file -->
You are going to want to change the file path and the height/width to fit your needs.....make sure to do this in both places each is shown.....
and if you want it to launch an external player use this
HTML Code:
<!-- begin link to launch external media player... -->
<a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player
</a><!-- ...end link to launch external media player... -->
again you are going to wnt to change the file path ("http://servername/path/to/media.file") and where it says "Launch in external player" you can type whatever you want.....
hope this all helps...let me know if you are having trouble
Last edited by CasaPages : 05-05-2005 at 04:59 PM.
|