Getting only RtmpConnection Success RTMP_STATUS Event
Closed this issue · 0 comments
kanoe92 commented
Describe the bug
Adding event listener into RtmpConnection object is returning only one status event - code=NetConnection.Connect.Success
. It's not possible to get other statuses like REJECTED, CLOSED, FAILED.
To Reproduce
Steps to reproduce the behavior:
- Create new RtmpConnection object
val connection = RtmpConnection()
- Add event listener into object
connection.addEventListener(Event.RTMP_STATUS, this)
- Connect to rtmp stream
connection.connect("rtmpStreamUrl")
- Listen for changes and see that only SUCCESS status is appearing.
Expected behavior
Get other statuses than SUCCESS, like CLOSED, FAILED.
Smartphone (please complete the following information):
- Device: Xiaomi Mi Note Lite 10
- OS: Android 12
Additional context
I've also tried adding listener with IO_ERROR, but this is not returning any error/message/status.