<small id='pMvmS'></small><noframes id='pMvmS'>

          <bdo id='pMvmS'></bdo><ul id='pMvmS'></ul>

        <legend id='pMvmS'><style id='pMvmS'><dir id='pMvmS'><q id='pMvmS'></q></dir></style></legend>
      1. <i id='pMvmS'><tr id='pMvmS'><dt id='pMvmS'><q id='pMvmS'><span id='pMvmS'><b id='pMvmS'><form id='pMvmS'><ins id='pMvmS'></ins><ul id='pMvmS'></ul><sub id='pMvmS'></sub></form><legend id='pMvmS'></legend><bdo id='pMvmS'><pre id='pMvmS'><center id='pMvmS'></center></pre></bdo></b><th id='pMvmS'></th></span></q></dt></tr></i><div id='pMvmS'><tfoot id='pMvmS'></tfoot><dl id='pMvmS'><fieldset id='pMvmS'></fieldset></dl></div>
      2. <tfoot id='pMvmS'></tfoot>

        expo-video-player 出现问题,它抛出错误:setAudioModeAsync

        Problem with expo-video-player, it throws Error: setAudioModeAsync(expo-video-player 出现问题,它抛出错误:setAudioModeAsync)
        • <small id='Jqaj2'></small><noframes id='Jqaj2'>

          <tfoot id='Jqaj2'></tfoot>

            <bdo id='Jqaj2'></bdo><ul id='Jqaj2'></ul>
          • <legend id='Jqaj2'><style id='Jqaj2'><dir id='Jqaj2'><q id='Jqaj2'></q></dir></style></legend>

              <tbody id='Jqaj2'></tbody>
          • <i id='Jqaj2'><tr id='Jqaj2'><dt id='Jqaj2'><q id='Jqaj2'><span id='Jqaj2'><b id='Jqaj2'><form id='Jqaj2'><ins id='Jqaj2'></ins><ul id='Jqaj2'></ul><sub id='Jqaj2'></sub></form><legend id='Jqaj2'></legend><bdo id='Jqaj2'><pre id='Jqaj2'><center id='Jqaj2'></center></pre></bdo></b><th id='Jqaj2'></th></span></q></dt></tr></i><div id='Jqaj2'><tfoot id='Jqaj2'></tfoot><dl id='Jqaj2'><fieldset id='Jqaj2'></fieldset></dl></div>

                1. 本文介绍了expo-video-player 出现问题,它抛出错误:setAudioModeAsync的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对expo-video-player"软件包有疑问.我想通过 expo-video-player 显示一个视频,但是当我加载组件时它会抛出一个错误,我不知道如何解决它,所以我需要帮助..

                  I have a problem with 'expo-video-player' package. I want to show a video through expo-video-player but when I load the component it throws an error and I don't know how to resolve it, so I need help..

                  我尝试过更改包源代码和组件道具,但它不起作用

                  I've tried change the package source code and the component props but it doesn't works

                  这是代码:(来自 expo-video-player 的示例代码)

                  Here is the code: (Example code from expo-video-player)

                  import { Video } from 'expo'
                  import VideoPlayer from 'expo-video-player'
                  
                  <VideoPlayer
                   videoProps={{
                   shouldPlay: true,
                   resizeMode: Video.RESIZE_MODE_CONTAIN,
                   source: {
                     uri: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
                    },
                   }}
                   isPortrait={true}
                   playFromPositionMillis={0}
                  />
                  

                  这里是错误:

                  错误: , setAudioModeAsync 错误, 1, [错误: 试图在没有所需键的情况下设置音频模式: ["staysActiveInBackground"]]- node_modules eact-nativeLibrariesYellowBoxYellowBox.js:59:8 错误- node_modulesexpouildenvironmentmuteWarnings.fx.js:27:24 错误- ... 来自框架内部的另外 17 个堆栈帧

                  Error: , setAudioModeAsync error, 1, [Error: Audio mode attempted to be set without the required keys: ["staysActiveInBackground"]] - node_modules eact-nativeLibrariesYellowBoxYellowBox.js:59:8 in error - node_modulesexpouildenvironmentmuteWarnings.fx.js:27:24 in error - ... 17 more stack frames from framework internals

                  谁能帮帮我?谢谢

                  推荐答案

                  这个问题是由 Expo SDK 33 创建的,其中一些模块已从核心中删除.

                  This issue was created by Expo SDK 33, where some modules has been removed from the core.

                  升级到最新版本 (1.3.0).此处已修复.

                  Upgrade to the latest version (1.3.0). It is fixed here.

                  https://www.npmjs.com/package/expo-video-player

                  这篇关于expo-video-player 出现问题,它抛出错误:setAudioModeAsync的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Gradient Button to background-color blinks on hover(悬停时背景颜色的渐变按钮闪烁)
                  How to make hovering over active button not use hover effect?(如何使悬停在活动按钮上不使用悬停效果?)
                  html javascript show image hover(html javascript 显示图像悬停)
                  How to get css hover values on click?(如何在点击时获得 css 悬停值?)
                  Change background image on link hover(更改链接悬停时的背景图像)
                  Highlight multiple items on hover#39;s condition(突出显示悬停条件下的多个项目)
                    <tbody id='LtmZ1'></tbody>
                  • <bdo id='LtmZ1'></bdo><ul id='LtmZ1'></ul>
                  • <tfoot id='LtmZ1'></tfoot>

                        <i id='LtmZ1'><tr id='LtmZ1'><dt id='LtmZ1'><q id='LtmZ1'><span id='LtmZ1'><b id='LtmZ1'><form id='LtmZ1'><ins id='LtmZ1'></ins><ul id='LtmZ1'></ul><sub id='LtmZ1'></sub></form><legend id='LtmZ1'></legend><bdo id='LtmZ1'><pre id='LtmZ1'><center id='LtmZ1'></center></pre></bdo></b><th id='LtmZ1'></th></span></q></dt></tr></i><div id='LtmZ1'><tfoot id='LtmZ1'></tfoot><dl id='LtmZ1'><fieldset id='LtmZ1'></fieldset></dl></div>

                          • <legend id='LtmZ1'><style id='LtmZ1'><dir id='LtmZ1'><q id='LtmZ1'></q></dir></style></legend>

                            <small id='LtmZ1'></small><noframes id='LtmZ1'>