全屏视频在 Android 中无法工作react-native-video

发布于 2025-01-19 08:08:02 字数 693 浏览 4 评论 0原文

  <Video                  
          source={{ uri: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" }}
          resizeMode="cover"
          repeat
          controls 
          fullscreen = {this.state.fullscreen}
          fullscreenOrientation = {"landscape"}        
          //onBuffer={this.onBuffer}                // Callback when remote video is buffering
          //onError={this.videoError}               // Callback when video cannot be loaded
          style={styles.backgroundVideo}
        /> 

我在肖像中使用了以上代码和Android清单方向。我是单击全屏幕状态的是根据它的变化。但是它只是在一秒钟内退出。由于我有些波动,也许该应用程序显示全屏,然后从全屏上退出。但是我看不到它。或者您可以说全屏不起作用。与iOS一样,它正常工作。我尝试了Github的多个,但无法实现。

  <Video                  
          source={{ uri: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" }}
          resizeMode="cover"
          repeat
          controls 
          fullscreen = {this.state.fullscreen}
          fullscreenOrientation = {"landscape"}        
          //onBuffer={this.onBuffer}                // Callback when remote video is buffering
          //onError={this.videoError}               // Callback when video cannot be loaded
          style={styles.backgroundVideo}
        /> 

I am using this above code and in the Android manifest orientation in portrait. I am click on the full screen state has been changes according to it. But it just exit in a second. As i am getting a little fluctuation and maybe the app is showing full screen and then exit from full screen. But i am not able to see it. Or you can say full screen is not working. As in the IOS it is working properly. I tried multiple from github but not able to achieve it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文