Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2005
    Location
    Regional Victoria (Australia)
    Posts
    109

    Default Embed MP4 in page

    I have created a place holder and inserted the following code into it. It works fine locally but when I upload it to my website it appears to load but does not play . The file is an MP4 and is ~25MB. I downloaded the code after viewing a number of sites which appear to be using similar code. The code:

    <div align="center">
    <object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="640" height="545" 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="autoStart" value="true"/>
    <param name="url" value="tent_fold.mp4" />
    <param name="wmode" value="transparent" />
    <param name="uiMode" value="full" />
    <param name="loop" value="false" />
    <embed id="EmbedmediaPlayer" type="application/x-mplayer2" src=" + videolink + " width="350" height="260">
    </embed>
    </object>
    </div>

    Where is this failing please?
    td

  2. #2

    Default Re: Embed MP4 in page

    25mb is a large file to buffer from the web.
    Can you supply the URL to the online version of your page?

  3. #3
    Join Date
    Apr 2005
    Location
    Regional Victoria (Australia)
    Posts
    109

    Default Re: Embed MP4 in page

    Yes. It does take a while.
    greygypsies.com.au/info/popup_tent.htm

    Quote Originally Posted by sledger View Post
    25mb is a large file to buffer from the web.
    Can you supply the URL to the online version of your page?

  4. #4

    Default Re: Embed MP4 in page

    <embed id="EmbedmediaPlayer" type="application/x-mplayer2" src=" + videolink + " width="350" height="260">


    Replace + videolink + with tent_fold.mp4

    See how that goes?

  5. #5

    Default Re: Embed MP4 in page

    Here's an alternative MP4 player (QT)

    Edit the source as required (video name and dimensions)
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	embedMP4.png 
Views:	518 
Size:	28.5 KB 
ID:	60123  
    Attached Files Attached Files

  6. #6
    Join Date
    Apr 2005
    Location
    Regional Victoria (Australia)
    Posts
    109

    Default Re: Embed MP4 in page

    Quote Originally Posted by sledger View Post
    <embed id="EmbedmediaPlayer" type="application/x-mplayer2" src=" + videolink + " width="350" height="260">


    Replace + videolink + with tent_fold.mp4

    See how that goes?
    Thanks.
    Tried all three. I had seen the Quicktime solution while looking for how to do this. It seemed a parallel solution. The simple solution you proposed (replace videolink with <filename> comes up "Ready" but does nothing and the Go button also does nothing. (Actual code after replacement: type="application/x-mplayer2" src=tent_fold.mp4" + " width="350" height="260">)

    The zip version you supplied displays a dark grey page with black writing and a rectangle superimposed but nothing else. (See attachment)

    The quicktime version got me to download a plugin (Quicktime). This happened and when finished the page displayed with a box containing Q but no action.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	screen.jpg 
Views:	420 
Size:	28.0 KB 
ID:	60126  

  7. #7

    Default Re: Embed MP4 in page

    Quote Originally Posted by Teedee View Post
    The zip version you supplied displays a dark grey page with black writing and a rectangle superimposed but nothing else. (See attachment)
    .
    Looks like you extracted only the index.htm and not the rest.

    The simple solution you proposed (replace videolink with <filename> comes up "Ready" but does nothing and the Go button also does nothing. (Actual code after replacement: type="application/x-mplayer2" src=tent_fold.mp4" + " width="350" height="260">)
    Your code wasn't replaced exactly as I'd suggested. Have a closer look at my post and compare it with what you have actually done.

  8. #8
    Join Date
    Apr 2005
    Location
    Regional Victoria (Australia)
    Posts
    109

    Default Re: Embed MP4 in page

    Your code wasn't replaced exactly as I'd suggested. Have a closer look at my post and compare it with what you have actually done.
    Is this correct?
    type="application/x-mplayer2" src=" + tent_fold.mp4 + " width="350" height="260"
    Last edited by steve.ledger; 28 April 2009 at 02:18 PM. Reason: fix broken bbcode

  9. #9
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Embed MP4 in page

    Is this correct?
    No!
    No pluses there!
    Try this one.
    type="application/x-mplayer2" src="tent_fold.mp4" width="350" height="260"
    John.

  10. #10

    Default Re: Embed MP4 in page

    Not quite.

    I used the red colour to show the text to replace. So it should look like this:

    <embed id="EmbedmediaPlayer" type="application/x-mplayer2" src="tent_fold.mp4" width="350" height="260">

    The full version of your placeholder code would be:

    <object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="640" height="545" 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="autoStart" value="true"/>
    <param name="url" value="tent_fold.mp4" />
    <param name="wmode" value="transparent" />
    <param name="uiMode" value="full" />
    <param name="loop" value="false" />
    <embed id="EmbedmediaPlayer" type="application/x-mplayer2" src="tent_fold.mp4" width="350" height="260">
    </embed>
    </object>

 

 

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
  •