admin管理员组文章数量:1208155
I am trying to display a local video in my React Native Expo app with controls for volume and video time. To do this, I have attempted to install the expo-av
package. I have written import { Video } from "expo-av"
at the top of my React Native file. This results in the error: Cannot find native module 'ExponentAV', js engine: hermes [Component Stack]
. This error occurs without me having written any code to use the expo-video
package.
Since this package was not working, I attempted to install the react-native-video
package. However, this results in a similar error.
I am trying to display a local video in my React Native Expo app with controls for volume and video time. To do this, I have attempted to install the expo-av
package. I have written import { Video } from "expo-av"
at the top of my React Native file. This results in the error: Cannot find native module 'ExponentAV', js engine: hermes [Component Stack]
. This error occurs without me having written any code to use the expo-video
package.
Since this package was not working, I attempted to install the react-native-video
package. However, this results in a similar error.
1 Answer
Reset to default 0Use the react-native-video
package:
import Video from "react-native-video";
<Video source = {{ "uri": exercise.video }} style = {{ "width": "100%", "height": 300 }} resizeMode = "contain" controls = {true} />
Set the Video Source to the location of the video
本文标签: React NativeDisplay Local VideoStack Overflow
版权声明:本文标题:React Native - Display Local Video - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738686321a2106841.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论