Jump to content

How to have audio/video not auto download on a page?


phprocker

Recommended Posts

Hey all.  I made a site and used the basic embed tags to include some audio with it not auto playing and the user having to press play for it to play.  Now I would also like it so that the user does not automatically have to download the file everytime he visits the index page to save on their load times.  And I don't want a separate link for the audio.  I want it on the main page but downloaded and played when user presses play.

What is the possible way to do this?  Is this set automatically by autostart=false?

thx
Link to comment
Share on other sites

Here is some HTML code I have. You can see it in action at [url=http://philip.calvarybucyrus.org/funny_page.htm]http://philip.calvarybucyrus.org/funny_page.htm[/url].
For me, it doesn't start downloading the clip until 'play' is clicked.

[code]<OBJECT id='mediaPlayer' width='450' height='375' 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 Video Components. Please Wait...' type='application/x-oleobject'>
<param name='fileName' value='http://philiplance.is-a-geek.com/funnystuff/funny-vidoes-Darth-Vader.wmv'>
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value='false'>
<param name='showControls' value='true'>
<param name='loop' value='false'>
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue'
src='http://philiplance.is-a-geek.com/funnystuff/funny-vidoes-Darth-Vader.wmv'
loop='false'>
</EMBED>
</OBJECT>[/code]
(The page seems to load 177KB when the HTML size is negligible - so maybe it starts to download the video a little bit - I don't know.)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.