Flowplayer for the impatient
3 quick and easy ways to present your videos to a world wide audience. Pick one:
- If you are a Flowplayer Drive user, simply copy the embed code from the Drive gallery.
- If you are a WordPress blogger, check out the Flowplayer HTML5 WordPress plugin.
- Read on.
Open a new document in your favourite editor and write or copy this line:
It will tell the browser which type of document it is loading and how to treat it. You want to show your audience HTML5 video in a HTML5 video player, so this is the HTML5 doctype.
Create a HEAD section, and load 3 assets - 1 stylesheet and 2 scripts:
- The TITLE tag is mandatory for HTML5; if missing Internet Explorer will not display the page.
- The CSS stylesheet contains the player skin: everything you need to interact with the player and how the player is designed.
- The jQuery script provides a library of helper tools.
- The flowplayer will tell the browser how to build and run the player.
You don't need to download and move around files on your server. Of course you can if you want to, but, hey, this is the world wide web, and here we fast load all prerequisites for free.
Add the BODY section for the actual content:
- Inside the BODY create a DIV (divisor) element. It will serve as container for the player.
- Give the DIV element the CSS class
"flowplayer". This magic class tells Flowplayer to install a player inside the container.
- Insert a VIDEO tag into the container - think DVD player.
- Add the video itself: a SOURCE tag with the
typeattribute telling the browser the video format and the
srcattribute pointing to where it can find the video file.
- For safety add a variant of the same video in a different format.
Now load the document in your browser, and ...
That's it. Done.
Hang on. That's only the beginning. Start exploring our demos and dive into the detailed documentation to discover the sheer endless possibilities. Look forward to creating the optimal stage to present your videos. The perfect way to bring joy to your audience: The Flowplayer way!
- Tip Watch the "view standalone page" links. Whenever you encounter a demo which strikes your interest, follow the link and download the source of that page. You have now got your hands on a working minimal sample, the optimal starting point for customization. Start tweaking the sample, for example by first replacing the video locations with those of your own, and verify the result at each step. - We encourage you to steal working code and base your own setup on it: the short route to a satisfying Flowplayer experience.