shogo4405/HaishinKit.kt

Getting only RtmpConnection Success RTMP_STATUS Event

Closed this issue · 0 comments

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:

  1. Create new RtmpConnection object val connection = RtmpConnection()
  2. Add event listener into object connection.addEventListener(Event.RTMP_STATUS, this)
  3. Connect to rtmp stream connection.connect("rtmpStreamUrl")
  4. 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.