为什么React Native Video不能在Android上运行,但可以在iOS上运行?
安装了React Videov。5.2.0
,但运行Android的错误,但在iOS中正确运行。
"react": "17.0.2",
"react-native": "0.68.0",
"react-native-video": "^5.2.0"
app.js app.js
import Video from 'react-native-video';
// create a component
const App = () => {
return (
<View>
<Video
source={{Uri: 'https://www.w3schools.com/html/mov_bbb.mp4'}}
ref={ref => (this.player = ref)}
style={{width: 300, height: 400}}
/>
</View>
);
};
请给我帮助。
installed react video v. 5.2.0
but an error in running android but running correctly in ios.
"react": "17.0.2",
"react-native": "0.68.0",
"react-native-video": "^5.2.0"
App.js
App.js
import Video from 'react-native-video';
// create a component
const App = () => {
return (
<View>
<Video
source={{Uri: 'https://www.w3schools.com/html/mov_bbb.mp4'}}
ref={ref => (this.player = ref)}
style={{width: 300, height: 400}}
/>
</View>
);
};
pls, help Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
uri
参数应为小写(而不是uri
)。The
uri
parameter should be lowercase (as opposed toUri
).