Speed Selection
Adds support for playback speed selection.
Installation
Load the speed plugin next to the core player.
<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>
OVP managed player
To enable the plugin in the async cloud player, either add it in the OVP player configurator declare it in the "plugins": [] config object with speed .
Configuration
The plugin is configured in top level configuration under speed namespace.
Properties:
-
- 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
var api = flowplayer('#container',
{ src: "//edge.flowplayer.org/bauhaus.mp4"
, title: "Bauhaus"
, speed:
{ options: [0.5, 1, 2]
, labels: ["Slow","Normal", "Fast"]
}
}
)
Demo
codepen