micnews / react-jw-player

A React Component API for JW Player
195 stars 94 forks source link

Playback speed for player #172

Open MehdiAghighi opened 4 years ago

MehdiAghighi commented 4 years ago

Is There a way that the user can change the playback speed of the player ? i saw in the docs that in pure javascript it is something like this

jwplayer('user-player').setup({
playlist: 'https://cdn.jwplayer.com/v2/media/gaCRFWjn',
  // Set the available playback rates of your choice
  playbackRateControls: [0.75, 1, 1.25, 1.5]
});

but i couldn't find how to do it in jwplayer-react

mushroomgead commented 4 years ago

You should be able to use customProps to set playbackRateControls. Like this: <ReactJWPlayer customProps={{ playbackRateControls: [0.75, 1, 1.25, 1.5] }} />