FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Clips On Sites





jarred89
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
JustaMin
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).

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 Smile
jarred89
Thanks for the help sure did help
mattd8752
Make sure they aren't copyrighted to... or you could get in big trouble...
jarred89
there my own i make
jarred89
Is it just the screen or the play buttons and everything as well i only want just the screen
JustaMin
If you just want the screen change:

<param name='showControls' value="true">

to

<param name='showControls' value="false">
jarred89
thanks heaps
jarred89
i did it but they still come up
JustaMin
Sorry, also change this line:

Code:
bgcolor='darkblue' showcontrols="true" showtracker='-1'


to:

Code:
bgcolor='darkblue' showcontrols="false" showtracker='-1'
jarred89
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>
Related topics
Contenu du FTP
PHP Book (Php and Mysql for Dynamic Web Sites)
Top Sites
Spanish sites allowed?
free games aviable for download. (sites)
Are we allowed to link to mp3 sites?
Are russian sites allowed?
FFS now my sites giving my a 500 Error
Most popular sites hosted on Frihost...
List of WAP sites
A LIST OF FREE PHP HOSTING SITES!
My Sites
What are some good sites to download recorded sounds
Two blog sites - news & articles, and magic
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.