Hello I am making some movie clips for my site i was wondering how i add them so when someone goes into my site the movie plays on the front page. Thanks
Clips On Sites
You'll probably want to use the HTML EMBED tag unless you want to anything more advanced than just play the file.
This code will embed a file and play it back using the media player plugin, assuming the viewer has the required codec (and plugin).
Your paramaters are set in the various params, ie set loop to 'false' if you want the vid to play once etc, you may want to set 'Width' and 'Height', pretty self-explanatory, and you'll need to change 'http://www.your.url/path/to/media.file' to suit your file.
Remove:
if you dont want to give them the option lo launth the file in an external media player.
Hope that helps
This code will embed a file and play it back using the media player plugin, assuming the viewer has the required codec (and plugin).
| Code: |
|
<table border='0' cellpadding='0' align="center"> <tr> <td> <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://www.your.url/path/to/media.file"> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value="true"> <param name='showControls' value="true"> <param name='loop' value="true"> <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://www.your.url/path/to/media.file" autostart="true" designtimesp='5311' loop="true"> </EMBED> </OBJECT> </td> </tr> <tr> <td align='center'> <a href="http://www.your.url/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a> </td> </tr> </table> |
Your paramaters are set in the various params, ie set loop to 'false' if you want the vid to play once etc, you may want to set 'Width' and 'Height', pretty self-explanatory, and you'll need to change 'http://www.your.url/path/to/media.file' to suit your file.
Remove:
| Code: |
| <tr>
<td align='center'> <a href="http://www.your.url/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a> </td> </tr> |
if you dont want to give them the option lo launth the file in an external media player.
Hope that helps
Thanks for the help sure did help
Make sure they aren't copyrighted to... or you could get in big trouble...
there my own i make
Is it just the screen or the play buttons and everything as well i only want just the screen
If you just want the screen change:
<param name='showControls' value="true">
to
<param name='showControls' value="false">
<param name='showControls' value="true">
to
<param name='showControls' value="false">
thanks heaps
i did it but they still come up
Sorry, also change this line:
to:
| Code: |
| bgcolor='darkblue' showcontrols="true" showtracker='-1' |
to:
| Code: |
| bgcolor='darkblue' showcontrols="false" showtracker='-1' |
i did that one as well and it still wont work hers the code i have now
<table border='0' cellpadding='0' align="center">
<tr>
<td>
<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://www.vidkidproductions.com/Credits.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="false" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.vidkidproductions.com/Credits.wmv" autostart="true" designtimesp='5311' loop="true"> </EMBED>
</OBJECT>
</td>
</tr>
</table>
<table border='0' cellpadding='0' align="center">
<tr>
<td>
<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://www.vidkidproductions.com/Credits.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="false" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.vidkidproductions.com/Credits.wmv" autostart="true" designtimesp='5311' loop="true"> </EMBED>
</OBJECT>
</td>
</tr>
</table>
