React native 如何在react native(ios)中启用webview后台音频播放?

React native 如何在react native(ios)中启用webview后台音频播放?,react-native,react-native-ios,react-native-webview,React Native,React Native Ios,React Native Webview,我的应用程序使用react native webview播放我的内容(通常是youtube.com视频页面)。我希望在我的应用程序处于后台时仍能播放内容。现在,当应用程序变成背景时,它只是停止播放声音 我启用了以下功能: 这是我的react原生webview代码 <WebView allowsFullscreenVideo source={{uri: this.state.url}} javaScriptEnabled={true} mixedContentMode={'

我的应用程序使用react native webview播放我的内容(通常是youtube.com视频页面)。我希望在我的应用程序处于后台时仍能播放内容。现在,当应用程序变成背景时,它只是停止播放声音

我启用了以下功能:

这是我的react原生webview代码

<WebView
  allowsFullscreenVideo
  source={{uri: this.state.url}}
  javaScriptEnabled={true}
  mixedContentMode={'always'}
  onShouldStartLoadWithRequest={this._deepLinkGuard}
/>

您找到解决方案了吗?我正试图解决同样的问题。