我正在使用react-native-yz-vlcplayer作为反应原生应用程序。我在android上有延迟问题,延迟太高了。在iOS上,由于插件选项,我几乎没有延迟:
mediaOptions={{
':network-caching': 0,
':live-caching': 0,
}}
我使用这个插件来广播RTSP提要。
我不知道如何在JAVA中这样做。
我还在the player's github上开了一个问题,但没有确凿的答案。
我想我需要修改文件ReactVlcPlayerView.java。我试图跟随这个solution,但我无法解决问题,也许我完全错了,但你可以帮助我吗?
非常感谢。
谢谢您的回答。这些日志我不确定这对你来说足够了吗?
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