Allow your videos to be embedded in other sites
You can provide a full configuration for the player and those customizations work on the embedded version. This includes skinning, clip settings, playlists and even plugins. Only event functions are not supported.
You can place embedding code anywhere on your page including textareas, tabbed panes, overlays or any
DIV. Just call
$f().getEmbedCode()and you're done.
You can either get a runnable version of the HTML code or a version that can be pasted as shown in the above example.
If your player has multiple clips in the playlist you can either embed the full playlist or just a selected clip.
The embedded object has the same width and height as the original player but those dimensions can be overridden in the configuration.
Commercial versions will also work because their license key is checked against the URL where the Flowplayer Flash component is loaded and not against the location where it is played. This means that people can embed your player into any domain and it will still work!
Here you can find more demos with both email and embedding features:
A minimal setup
Here is the minimum code necessary to get embedding to work:
Show this example as a standalone version. Grab its code for your own pages.
First you need a working player on the page. It can have any configuration you want. Here is one example:
Now when we want to get the HTML code we can simply do following:
Here are all the supported configuration options with their default values that you can specify for the embedding tool:
Here is one example configuration:
Get the runnable code
You can get the runnable code just by supplying
true for the
function as seen in the example below. This is the exactly the same code except for
the < and > characters which are not encoded so the code can be placed in
the page and the player will run.
This functionality is especially useful for testing purposes.
minified with Douglas Crockford's minifier
Please right-click and choose "Save link as..." (or similar)
See the version history for this tool.
Found a bug?