SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Addict einSTein's Avatar
    Join Date
    Aug 2006
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wmv Media Player Viewer

    anyone have a php code to view a wmv file online on my page in media player or anything else ??

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    That's done with HTML. Moving this to the HTML forum.

  3. #3
    Now available in Orange Tijmen's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1,472
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should help getting the video to display at your website.
    Embed Mediaplayer
    Travel Photos on Flickr - Twitter

    “Never give up. Never surrender”

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Pennsylvania
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I feell kind of stupid here, but for some reason, I cannot get the media player to display on the page anywhere but in the upper-left-hand corner....

    I can't even get it to move by placing it in a three column table.

    Is there a docking tag I'm missing somewhere?

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    www.alistapart.com/articles/byebyeembed/ for how to insert a multimedia file using just the <object> element

    Also, you have to put the multimedia object in the source code where you want it to appear.

    If you can provide me with the source code for your layout, I'll show you how you can use HTML and CSS to position it where you want it.

  6. #6
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Pennsylvania
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure..

    Code:
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <br />
    <br />
    <center>
    <table>
      <tr>
    	  <td width="100">&nbsp;
    		</td>
    	  <td>		
    <OBJECT id="VIDEO" width="320" height="240" 
    	style="position:absolute; left:0;top:0;"
    	CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    	type="application/x-oleobject">
    	
    	<PARAM NAME="URL" VALUE="December.mp3">
    	<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
    	<PARAM NAME="AutoStart" VALUE="False">
    	<PARAM NAME="uiMode" VALUE="full">
    	<PARAM NAME="PlayCount" VALUE="1">
    	<PARAM NAME="enableContextMenu" VALUE="True">
    	<PARAM NAME="windowlessVideo" VALUE="True">
    </OBJECT>
        </td>
    		<td width="100">&nbsp;
    		</td>
      </tr>
    </table>
    </center>
    </body>
    </html>
    Its pretty basic. Three table data cells with a fixed width and the media player should be in the center.

    Even with a single space in the left hand cell, I should have at least one space between the left screen edge and the player.

    But it doesn't move no matter what...

    I haven't even attempted to apply CSS to it yet. If I can't get it to move with simple markup, I figure I don't understand something about the <object> tag....

  7. #7
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, for starters, there is CSS in there. It's positioning the object absolutely, at the top left corner. Remove the following code from the <object> element (opening tag) and it will position properly.
    Code:
     style="position:absolute; left:0;top:0;"

  8. #8
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Pennsylvania
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz
    Well, for starters, there is CSS in there. It's positioning the object absolutely, at the top left corner. Remove the following code from the <object> element (opening tag) and it will position properly.
    Code:
     style="position:absolute; left:0;top:0;"
    *blink*

    *blinkblink*

    Okay....

    Do I feel like an idiot....

  9. #9
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No... I didn't even notice it a first.


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
  •