No audio after restarting stream (close & reconnect)
ktprograms opened this issue · 1 comments
ktprograms commented
Describe the bug
No audio in the stream after calling connection.close()
and then connection.connect(RTMP_URL)
. Works after restarting Activity (init-ing connection again).
To Reproduce
- Create
RtmpConnection
andRtmpStream
with camera and audio source. - User presses button to stop streaming, which calls
connection.close()
. - User resumes streaming, code calls
connection.connect(RTMP_URL)
(RTMP_URL
is a validrtmp://
URL, audio works on the first connection, but not this second one).
Expected behavior
Audio should continue
Version
0.10.4
Smartphone info.
Android 12 (One UI 4.1)
Additional context
Using nginx RTMP module as backend (and manually viewing recorded files on the server).
Screenshots
No response
Relevant log output
No response
shogo4405 commented
It works ok. Pixel3a(Android12), Pixel4a(Android13).
I think it's a Galaxy, I would like to know the specific model.