I have gone through with this example and steps for my react native app.
On Android i have found crash by clicking on start button.
The bug is related to rtmp-rtsp-stream-client-java but in your package library i haven’t found any file from this library rtmp-rtsp-stream-client-java.
Do i have to add this package rtmp-rtsp-stream-client-java manually, if yes please share how.
Thanks.
Example links:-
Error Log:-
E/AndroidRuntime: FATAL EXCEPTION: glThread
Process: com.shoprun, PID: 21152
java.lang.IllegalArgumentException: Make sure the SurfaceView or associated SurfaceHolder has a valid Surface
at android.opengl.EGL14._eglCreateWindowSurface(Native Method)
at android.opengl.EGL14.eglCreateWindowSurface(EGL14.java:265)
at com.pedro.encoder.input.gl.SurfaceManager.eglSetup(SurfaceManager.java:159)
at com.pedro.encoder.input.gl.SurfaceManager.(SurfaceManager.java:54)
at com.pedro.rtplibrary.view.OpenGlView.run(OpenGlView.java:118)
at java.lang.Thread.run(Thread.java:923)
This error is an Android system exception. It often happens when the SurfaceView (where to display camera preview) has not been created. Do you think of reason why SurfaceView has not been created in your case?
When you say the “start button” what button do you mean?
Could you share your source code to help us fix your issue?
Anyway, you should not have to worry with rtmp-rtsp-stream-client-java as it is already included in android-live-stream (or android-livestream) dependency.
Hi @chiragmakwana,
We are trying to reproduce this issue but we can’t, did you install it with npm or yarn ?
Did you try to remove the module and reinstall it ? (I recommend with yarn)
Hey, i just removed this packages @api.video/react-native-livestream,@api.video/react-native-player and added both by using yarn add.
Now the things is in Android device i am able to create live stream and able to preview that stream in android-ios devices, but in ios device by clicking start button it is not creating live stream there is no status for active stream and there is no error in console.
Hello @chiragmakwana,
I’m working on it, I’m trying to reproduce your issue.
For the status we are currently working on it and it will be available soon.
I will come back to you later.
Well i am at kind of urgency for this feature.
Do let me know how much time it will take from your end ? I am talking about ios version.
It is not working.
Do i have missed something for the integration or something else because in my case i am not able to find out any error or logs when starting live stream on ios device.
Hello @chiragmakwana and @dhruvpatel,
The livestream on iOS is now fixed.
You have to update your pods by doing a “pod update”, it should update LivestreamIos from 0.0.2 to 0.0.3