Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts

    mpg video in html with <object>

    hi everyone

    i m using this code to insert mpg file in html.

    <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="200" height="200">
    <param name="src" value="Jogi.mpg">
    <embed src="Jogi.mpg" pluginspage="http://www.macromedia.com/shockwave/download/" width="200" height="200" autostart="true"></embed>
    </object>

    i m testing this offline. This code works fine and shows video fine in firefox but does nothing in internet explorer 6. i have shockwave player installed both in firefox and internet explorer.

    vineet

  • #2
    Regular Coder feras_wilson's Avatar
    Join Date
    Jul 2005
    Location
    Sweden
    Posts
    129
    Thanks
    1
    Thanked 0 Times in 0 Posts

    This will work in both IE and FF

    Hi!
    Here is my working code for you:
    Code:
     
     <OBJECT id=WindowsMediaPlayer1 width=320 height=264 hspace=5 
                vspace=5 classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 border="5" align="middle">
                  <param name="URL" value="jogi.mpg" ref>
                  <param name="rate" value="1">
                  <param name="balance" value="0">
                  <param name="currentPosition" value="0">
                  <param name="defaultFrame" value>
                  <param name="playCount" value="1">
                  <param name="autoStart" value="-1">
                  <param name="currentMarker" value="0">
                  <param name="invokeURLs" value="-1">
                  <param name="baseURL" value>
                  <param name="volume" value="50">
                  <param name="mute" value="0">
                  <param name="uiMode" value="full">
                  <param name="stretchToFit" value="-1">
                  <param name="windowlessVideo" value="0">
                  <param name="enabled" value="-1">
                  <param name="enableContextMenu" value="-1">
                  <param name="fullScreen" value="0">
                  <param name="SAMIStyle" value>
                  <param name="SAMILang" value>
                  <param name="SAMIFilename" value>
                  <param name="captioningID" value>
                  <param name="enableErrorDialogs" value="0">
                  <param name="_cx" value="9260">
                  <param name="_cy" value="9790">
    <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="264"
            src="jogi.mpg" autostart="true" designtimesp='5311'>
          </EMBED>
    </OBJECT>
    Exp:
    PHP
    .NET

  • #3
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by feras_wilson View Post
    Hi!
    Here is my working code for you:
    Code:
     
     <OBJECT id=WindowsMediaPlayer1 width=320 height=264 hspace=5 
                vspace=5 classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 border="5" align="middle">
                  <param name="URL" value="jogi.mpg" ref>
                  <param name="rate" value="1">
                  <param name="balance" value="0">
                  <param name="currentPosition" value="0">
                  <param name="defaultFrame" value>
                  <param name="playCount" value="1">
                  <param name="autoStart" value="-1">
                  <param name="currentMarker" value="0">
                  <param name="invokeURLs" value="-1">
                  <param name="baseURL" value>
                  <param name="volume" value="50">
                  <param name="mute" value="0">
                  <param name="uiMode" value="full">
                  <param name="stretchToFit" value="-1">
                  <param name="windowlessVideo" value="0">
                  <param name="enabled" value="-1">
                  <param name="enableContextMenu" value="-1">
                  <param name="fullScreen" value="0">
                  <param name="SAMIStyle" value>
                  <param name="SAMILang" value>
                  <param name="SAMIFilename" value>
                  <param name="captioningID" value>
                  <param name="enableErrorDialogs" value="0">
                  <param name="_cx" value="9260">
                  <param name="_cy" value="9790">
    <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="264"
            src="jogi.mpg" autostart="true" designtimesp='5311'>
          </EMBED>
    </OBJECT>
    hi

    thanks for the code.

    this code works fine but doesnot validate at
    http://validator.w3.org/

    is there any solution to validate it

    vineet


  •  

    Posting Permissions

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