Speed Selection plugin

This plugin adds support for playback speed selection.

Installation

Load the speed plugin next to the core player:

Copy
Copied
<script src="//cdn.flowplayer.com/releases/native/3/stable/flowplayer.min.js"></script>
<script src="//cdn.flowplayer.com/releases/native/3/stable/plugins/speed.min.js"></script>

Configuration

The plugin is configured in top level configuration under the speed namespace. Available properties are as follows:

option description default
options array array of speed factors where 1 is normal speed [0.2, 0.5, 1, 2, 10]
labels array array of speed labels. Indices match with options array. for each label {option}x

Sample code

Copy
Copied
var api = flowplayer('#container',
  { src: "//edge.flowplayer.org/bauhaus.mp4"
  , title: "Bauhaus"
  , speed:
    { options: [0.5, 1, 2]
    , labels: ["Slow","Normal", "Fast"]
    }
  }
)

Demo

codepen