api.video-reactnative-live-stream
api.video-reactnative-live-stream copied to clipboard
[Bug]: Can't stream with Android
Version
v1.2.3
Which operating systems have you used?
- [X] Android
- [ ] iOS
Environment that reproduces the issue
Samsung Galaxy S9 Android 10
Is it reproducible in the example application?
Yes
RTMP Server
rtmp://192.168.1.38:1935/live
Reproduction steps
- Start streaming with some bitrate (2 * 1024 * 1024 or 3*1024 * 1024 or another value)
- Set the resolution to 1080p or 720p
- Set the gopDuration between 2-4s
- After some time streaming will stop - server will not receive data
- Preview will still work fine on the phone
- Change the bitrate value, gopDuration, resolution and test again
Expected result
Streaming doesn't stop
Actual result
Streaming stops after a short period of time (1s to 20s depending on the configuration) because of a wrong configuration
Additional context
No response
Relevant logs output
No response
Hi,
Thanks for reporting this issue. Could you add logcat trace?
Yes of course, here it is logcat.txt
Another thing related to this is that I need sometimes to call stopStreaming and then startStreaming again in order to see my streaming on my server but as I said above my streaming stops after a few seconds anyway.
All I can find is
rtmpdroid: Can't connect stream
connectStream
is a RTMP message that is exchanged between the client and the server once they are connected. The issue is often because the streamKey
is not correctly set. Could you double check it?
If your stream key is okay, could you please contact your server to check what is wrong with the connectStream
message?
The streamKey
is good and I can see my stream info on my NodeMediaServer but without the audio and video.

But when I call stopStreaming
and then startStreaming
again the stream shows up on my server but stops after few seconds.

Here is another logcat.txt after I called stopStreaming and startStreaming again.
Any updates ?
Hi,
Sorry for the delay, I could not reproduce this with my phone. Could you check if you can stream to nms with Could you check with https://github.com/ThibaultBee/StreamPack/suites/18448322708/artifacts/1069695034? (internal Android RTMP library)?
This is supposed to be fixed with 2.0.0. Could you test with 2.0.0?
Stall issue. Please reopen if you have new info.