JavaScript
Article

Autoplay Flowplayer on the iPad

By Sam Deering

How to setup flowplayer ipad autoplay. “iOS does not allow to play videos automatically on page load. For consistency we therefore recommend embedding with a splash image.” Try the following code.

onLoad: function()
{
  $f().play();
  $f(playerid).play();
}

And also clip settings:

autoPlay: true,
live: true,
autoBuffering: true,

There is also an ipadUrl parameter. It is worth noting that once you specify an “ipadUrl” it stops adding a src= parameter to the video tag, so the iDevice never knows what video to play.

clip:
{
    ipadUrl: ipad_streamAddressFull
}

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

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