You can easily provide your audience with playback rate change options, thanks to our intuitive playback rate player module. For more advanced use-cases our player API will let you build a custom user experience. The playback rate module is only available for video content (e.g. not for audio-only player) but the playback rate API can be used with the audio-only player as well.
speed: Boolean
Activate or not the playback rate module. Default: false.
On Android, playback rate changes are only supported for Firefox 47+ and Chrome 52+
speedRates: Array
Set the playback rate available values to be used by the playback rate module. Must be submitted as an array of numbers. Default: [0.25, 0.5, 1, 1.5, 2, 4].
ratechange
fires when the playing speed of the video is changed.
rmp.getPlaybackRate();
This method returns a Number
representing the current playback rate.
-1
is returned if this value is not available.
rmp.setPlaybackRate(2);
This method will change the player playback rate to the
Number
set as input parameter. Decent values for playback rate ranges from 0.25 to 4 and can be increment by 0.1. Values outside this range may cause playback issues in some browsers.