Found Crash on React Native livestream component

Hey,

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)

Hey,

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.

Best regards,
Thibault

I used this link to add library in my react native app to use its LivestreamView component:- React Native livestream component.

I have added snap in which i have got the crash by clicking on start button.

Thanks

On your device, do you have the camera preview running before you click on startStreaming?

Yes,
There is camera preview before i click on startStreaming button.

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)

Best regards
Romain

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.

I also did this :- react-native-livestream/install_swift_dependency.md at main · apivideo/react-native-livestream · GitHub

Thanks

Waiting for your response !!

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.

Best regards
Romain

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.

Waiting for your response !
Thanks.

We found an issue about it,
We are putting all our efforts to fix it as soon as possible.

I will ping you when it will be released.
Sorry about the inconvenience.

Romain.