小编cae*_*sol的帖子

无法启动模拟器。原因:当 react-native run-android 时,模拟器在启动前退出 React Native

我正在根据这个网站安装 React Native https://medium.com/@leonardobrunolima/react-native-tips-setting-up-your-development-environment-for-windows-d326635604ea,在我运行命令之前它非常有用react-native run-android,这是我收到的错误:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Launching emulator...
error Failed to launch emulator. Reason: Emulator exited before boot..
> Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
24 actionable …
Run Code Online (Sandbox Code Playgroud)

android android-studio react-native

7
推荐指数
2
解决办法
2万
查看次数

为什么 video.requestPictureInPicture() 只能工作一次?

我正在尝试通过 Javascript onscroll 函数进入和退出视频的 PIP 模式,并且我只能进入和退出此模式一次。这是我的代码笔:

    if (!myVideo.paused && myVideo.currentTime > 0 
        && !myVideo.ended && !isVideoPIP) {
      console.log('runPip')
      myVideo.requestPictureInPicture()
        .then(()=>{isVideoPIP = true;})
        .catch(e=>console.log(e.message))
    }
Run Code Online (Sandbox Code Playgroud)

https://codepen.io/Greggg/pen/WBdeJG

第二次我收到此错误消息“如果画中画中还没有元素,则必须处理用户手势。”

html javascript google-chrome html5-video picture-in-picture

5
推荐指数
1
解决办法
7323
查看次数