Embed an FLV file into a web page

This is if  you have an FLV file and you don't want any fancy management system, you just want your FLV to play on your webpage.

The following example is a demonstration of how to do this without installing anything on your webserver.

 I like to use flowplayer for this example but my own systems can't use a solution as crude as this.

  1. Copy the below code (beginning and ending with object tags)
  2. Paste it into your HTML page
  3. Replace both instances of the text "http://my.video.com/myVideo.flv" with the full url of your own FLV.
  4. Save the HTML page and publish

The Code:

 

copyraw
<object width="460" height="320" data="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" type="application/x-shockwave-flash">
	<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" />
	<param name="allowfullscreen" value="true" />
	<param name="allowscriptaccess" value="always" />
	<param name="flashvars" value='config={"plugins":{"pseudo":{"url":"flowplayer.pseudostreaming-3.1.3.swf"},"controls":{"backgroundColor":"#000000","backgroundGradient":"low"}},"clip":{"provider":"pseudo","url":"http://my.video.com/myVideo.flv"},"playlist":[{"provider":"pseudo","url":"http://my.video.com/myVideo.flv"}]}' />
</object>
  1.  <object width="460" height="320" data="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" type="application/x-shockwave-flash"> 
  2.      <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" /> 
  3.      <param name="allowfullscreen" value="true" /> 
  4.      <param name="allowscriptaccess" value="always" /> 
  5.      <param name="flashvars" value='config={"plugins":{"pseudo":{"url":"flowplayer.pseudostreaming-3.1.3.swf"},"controls":{"backgroundColor":"#000000","backgroundGradient":"low"}},"clip":{"provider":"pseudo","url":"http://my.video.com/myVideo.flv"},"playlist":[{"provider":"pseudo","url":"http://my.video.com/myVideo.flv"}]}' /> 
  6.  </object> 


Additional: Stop AutoPlay
Thank you to Anna Moors for writing in and asking "how to stop the movie from playing automatically on page load?". Anna has since confirmed that the below code buffers her movie but only starts when clicked, ideal! Changes are: clip{ autobuffering, autoplay }
copyraw
<object
        width="460"
        height="320"
        data="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf"
        type="application/x-shockwave-flash"
        autoplay="false">

        <param name="autoplay" value="false" />
        <param name="autostart" value="0" />
        <param name="controller" value="true" />
        <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="allowscriptaccess" value="always" />
        <param
                name="flashvars"
                value='
                        config={
                                "plugins":{
                                        "pseudo":{"url":"flowplayer.pseudostreaming-3.1.3.swf"},
                                        "controls":{"backgroundColor":"#000000","backgroundGradient":"low"}
                                },
                                "clip":{
                                        "provider":"pseudo",
                                        "url":"http://www.mysite.com/myMovie.flv",
                                        "autoBuffering":true,
                                        "autoPlay":false
                                },
                                "playlist":[{
                                        "provider":"pseudo",
                                        "url":"http://www.mysite.com/myMovie.flv"
                                }]
                        }' />
</object>
  1.  <object 
  2.          width="460" 
  3.          height="320" 
  4.          data="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" 
  5.          type="application/x-shockwave-flash" 
  6.          autoplay="false"> 
  7.   
  8.          <param name="autoplay" value="false" /> 
  9.          <param name="autostart" value="0" /> 
  10.          <param name="controller" value="true" /> 
  11.          <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.1.5.swf" /> 
  12.          <param name="allowfullscreen" value="true" /> 
  13.          <param name="allowscriptaccess" value="always" /> 
  14.          <param 
  15.                  name="flashvars" 
  16.                  value=' 
  17.                          config={ 
  18.                                  "plugins":{ 
  19.                                          "pseudo":{"url":"flowplayer.pseudostreaming-3.1.3.swf"}, 
  20.                                          "controls":{"backgroundColor":"#000000","backgroundGradient":"low"} 
  21.                                  }, 
  22.                                  "clip":{ 
  23.                                          "provider":"pseudo", 
  24.                                          "url":"http://www.mysite.com/myMovie.flv", 
  25.                                          "autoBuffering":true, 
  26.                                          "autoPlay":false 
  27.                                  }, 
  28.                                  "playlist":[{ 
  29.                                          "provider":"pseudo", 
  30.                                          "url":"http://www.mysite.com/myMovie.flv" 
  31.                                  }] 
  32.                          }' /> 
  33.  </object> 

 

Category: Hypertext Markup Language :: Article: 247

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: The information on this website is provided without warranty and any content is merely the opinion of the author. Please try to test in development environments prior to adapting them to your production environments. The articles are written in good faith and, at the time of print, are working examples used in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Related Articles

Joes Revolver Map

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin - Valid till 8 May 2022 3QnhmaBX7LQSRsC9hh6Je9rGQKEGNQNfPb
© 2021 Joel Lipman .com. All Rights Reserved.