【发布时间】:2017-10-03 15:56:23
【问题描述】:
render() {
return (
<View style={styles.container}>
<Video
source={{ uri: 'http://d23dyxeqlo5psv.cloudfront.net/big_buck_bunny.mp4' }}
rate={1.0}
volume={1.0}
muted={false}
resizeMode="cover"
repeat
style={{ width: 300, height: 300 }}
/>
</View>
);
}
}
我只是想让视频成为屏幕的背景。我正在使用 Windows,所以我对如何在没有 Xcode 的情况下做到这一点有点迷茫。有其他方法吗?
【问题讨论】:
标签: ios video react-native background components