Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change video speed (1x,2x ....) in Expo av?

I am trying implement a video functionality on Expo using Expo-av. But I got stuck in controlling video speed like 1x, 2x like youtube. Can any one help me on that . Thank you in advance.

like image 879
Bhaskar Joshi Avatar asked Sep 10 '25 09:09

Bhaskar Joshi


1 Answers

You can control it with the rate parameter inbuilt in expo-av

<Video
  source={{ uri: 'http://d23dyxeqlo5psv.cloudfront.net/big_buck_bunny.mp4' }}
  rate={1.0} //CHANGE ME
  volume={1.0}
  isMuted={false}
  resizeMode="cover"
  shouldPlay
  isLooping
  style={{ width: 300, height: 300 }}
/>
like image 178
satvik Avatar answered Sep 13 '25 07:09

satvik