Hi. I’m trying to get video playing back on Android with a slow rate (such as 0.5). I’ve taken the sample code from the latest docs and simply added rate={0.5}
. This works fine in iOS, but on Android it has no effect. I’ve tried on Android 6 and 7, with emulators and devices.
I could have sworn I tried this a few weeks ago in Sketch and it worked. I’ve tried this today in Sketch, in XDE, and with CRNA.
When I log the params from onLoad
, it reports “canPlaySlowForward”:true and “canPlayFastForward”:true.
Any help would be greatly appreciated. It’s my first time on the forum, so if I can provide any better/different documentation please let me know!
import Expo, { Video } from "expo";
import React from "react";
import { StyleSheet, View } from "react-native";
class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Video
source={{
uri: "http://d23dyxeqlo5psv.cloudfront.net/big_buck_bunny.mp4"
}}
rate={0.5} // <- no apparent effect
style={{ width: 320, height: 240 }}
onLoad={params => {
console.log(params);
}}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center"
}
});
Expo.registerRootComponent(App);