SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Embedding A Movie Player

    Hi,

    I am looking to embed a movie player on my new website to show small movie trailers.

    Can anybody advise me as to the best way of doing this, or point me towards a resource that can help me?

    Any information would be much appreciated!

    Thanks.


  2. #2
    SitePoint Addict
    Join Date
    May 2006
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code to embed .wmv file in a page. Seems to work well across various browsers. Found it on a forum somewhere:


    <object id="MediaPlayer1" 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" width="320" height="280">
    <param name="fileName" value="yourfile.wmv">
    <param name="animationatStart" value="true">
    <param name="transparentatStart" value="true">
    <param name="autoStart" value="true">
    <param name="showControls" value="true">
    <param name="Volume" value="-450">
    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="yourfile.wmv" name="MediaPlayer1" width=320 height=280 autostart=1 showcontrols=1 volume=-450>
    </object>


    Rgds

    Accel


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •