React Native VLCPlayer RTSP Latency (Android version)



我正在使用react-native-yz-vlcplayer作为react本机应用程序。我在安卓上遇到延迟问题,延迟太高。在iOS上,由于插件选项,我几乎没有延迟:

 mediaOptions={{
 ':network-caching': 0,
 ':live-caching': 0,
 }}

我使用此插件来广播 RTSP 提要。

我不知道如何在JAVA中做到这一点。

我还在播放器的github上打开了一个问题,但没有决定性的答案。

我想我需要修改文件ReactVlcPlayerView.java。我尝试遵循此解决方案,但我无法解决问题,也许我完全错了,但你能帮我吗?

非常感谢。

感谢您的回答。以下是我不确定对您来说足够多的日志?

02-19 15:56:11.792  9238  9269 D ReactNative: CatalystInstanceImpl.initialize()
02-19 15:56:11.801  9238  9269 D ReactNative: 
ReactInstanceManager.attachRootViewToInstance()
02-19 15:56:12.705  9238  9268 I ReactNativeJS: Running application "JohnDoe" 
with appParams: {"rootTag":1}. __DEV__ === true, development-level warning are 
ON, performance optimizations are OFF
02-19 16:02:19.078  9238  9268 I ReactNativeJS: 'socket-0', '_read'
02-19 16:02:19.079  9238  9268 I ReactNativeJS: 'socket-0', 'Socket._read 
resume'
02-19 16:02:19.081  9238  9268 I ReactNativeJS: 'socket-0', 'connecting, 
host:', 'fong.dyndns.tv', 'port:', 6577
02-19 16:02:19.292  9238  9268 I ReactNativeJS: 'socket-0', 'received', 
'connect'
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in Login (at 
navigationStore.js:448)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in Wrapped (at 
SceneView.js:9)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in SceneView (at 
StackViewLayout.js:478)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in RCTView (at View.js:43)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in RCTView (at View.js:43)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in RCTView (at View.js:43)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in AnimatedComponent (at 
screens.native.js:58)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in Screen (at 
StackViewCard.js:42)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in Card (at 
createPointerEventsContainer.js:26)
02-19 16:02:19.631  9238  9268 W ReactNativeJS:     in Container (at 
StackViewLayout.js:507)
02-19 16:02:19.939  9238  9268 I ReactNativeJS: checkInitSuccess
02-19 16:02:20.478  9238  9268 I ReactNativeJS: 0:0
02-19 16:02:20.640  9238  9268 I ReactNativeJS: onOpen
02-19 16:02:20.645  9238  9268 I ReactNativeJS: { type: 'Opening',
02-19 16:02:20.645  9238  9268 I ReactNativeJS:   duration: 0,
02-19 16:02:20.645  9238  9268 I ReactNativeJS:   currentTime: 0,
02-19 16:02:20.645  9238  9268 I ReactNativeJS:   position: 0,
02-19 16:02:20.645  9238  9268 I ReactNativeJS:   isPlaying: false }
02-19 16:02:21.353  9238  9268 I ReactNativeJS: onPlaying

相关内容

  • 没有找到相关文章

最新更新