JavaScript
Article

Adding flash player info to Flowplayer

By Sam Deering

Adding flash player info to Flowplayer because the Flash browser plugin is required for Flowplayer to work it may be beneficial to display a custom message to the user and even a specific version of Flash required for the player. Maybe even a link to download.

no-flash

You can capture the no Flash using the following code:

// we need at least this version of flash
version: [9, 115],

// older versions will see a custom message
onFail: function()
{
      $('#fms').after("You need the latest Flash version to view MP4 movies. " + "Your version is " + this.getVersion());
},

No Reader comments

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.