This is a message.

Viral videos

Learn how to use the viral videos Flowplayer plugin

standalone demo

This demo shows the viral videos plugin in its default configuration.


The only configuration option we have added here is a description text that will be used when the user shares the page link to social sites.

flowplayer("player", "",
'plugins': {
'viral': {
// load the viral videos plugin
'url': 'flowplayer.viralvideos-3.2.14.swf',
// define a video title used in sharing
'share': {
'description': 'Extreme surfers riding big waves'
'clip': {
'url': '',
'pageUrl': '',
'autoPlay': false


HTML meta tags to share the player

When you share this page on certain social networks like Facebook, not only a link back to this page is shared but also the player. This viral spreading of the media itself is achieved by adding HTML meta attributes to your page.

Here are the HTML tags and attributes needed to share this page with the player:

<!doctype html>
<html xmlns:og="" xmlns:fb="">
<!-- ... other head tags go here ... -->
<!-- "old-fashioned" meta tags -->
<meta name="medium" content="video" />
<meta name="title" content="Viral videos" />
<meta name="description" content="Learn how to use the viral videos Flowplayer plugin" />
<meta name="video_type" content="application/x-shockwave-flash" />
<meta name="video_height" content="360" />
<meta name="video_width" content="640" />
<link rel="image_src" href="" />
<link rel="video_src"
href="" />
<!-- open graph meta properties -->
<meta property="og:url" content="" />
<meta property="og:site_name" content="Flowplayer" />
<meta property="og:type" content="movie" />
<meta property="og:title" content="Viral videos" />
<meta property="og:description" content="Learn how to use the viral videos Flowplayer plugin" />
<meta property="og:video:height" content="360" />
<meta property="og:video:width" content="640" />
<meta property="og:image" content="" />
<meta property="og:image:secure_url" content="" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video"
content="" />
<meta property="og:video:secure_url"
content="" />


Most of the above tags are self-explanatory. Some of them, like og:title, may be used to override a page attribute for more specific use in media sharing.

We have two groups of meta tags with overlapping content. A network like MySpace needs the group which is labeled 'old-fashioned', while Facebook and others prefer the Open Graph protocol.

For Facebook and Open Graph it is recommended that you add these schemas to the html tag:

<html xmlns:og="" xmlns:fb="">


Find out more about Facebook's handling of Open Graph properties here.

Video meta tags

The tags responsible for sharing the player are: video_src, og:video, og:video:secure_url. Their value is an URL pointing to the location of the Flowplayer swf file with a query containing the player configuration:

Shared configuration

Shared players are embedded by social networks using an OBJECT tag. The configuration part therefore is formatted the same way as the flashvars parameter of the object tag and must then be url-encoded as it is the query part of an URL.

The same restrictions apply as for all alternate embedding methods which install Flowplayer without its JavaScript API.

Ensure that the URLs of the Flowplayer assets (logo, plugins etc.) in the configuration of the og:video:secure_url tag resolve to a HTTPS location. Using HTTPS for all video locations is recommended.

We recommend using an external configuration file because url-encoding even a simple configuration is error-prone and hard to maintain. As you can only share one player per page anyway - albeit from various locations - this is much easier as long as you stick to a consistent naming scheme. Often the shared configuration will vary slightly from the configuration of the player on the originating page, and then again a human-readable configuration is easier to set up - as in this demo. Note however, that the external configuration file used for sharing must be served from the same domain as the core player flowplayer-3.2.18.swf.

The external configuration file for sharing the player on this page can be found here, and its HTTPS 'secure' version here.

Debugging meta tags

Check the meta tags of your page in Facebook's Debugger.

Try the value of the video meta tags in action by entering them in your browser's location bar. For this page just click on the following link which is the value of og:video:secure_url, and the shared player will open in its own window: