-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTMP Status Listener not receiving RTMPConnection.Code.connectClosed
Event when rtmpConnection.close()
#671
Comments
I found the true reason should be our server does not send "NetStream.Connect.Closed" at all. |
|
Thank you so much. I understood. |
Just a follow-up question. Then what's the proper way to get the callback for Here's an example in Action Script says:
https://stackoverflow.com/questions/12049203/how-to-disconnect-an-rtmp-connection |
Describe the bug
Our RTMP status listening function is not getting a notification when we close the connection by
rtmpConnection.close()
. After reviewing #653 and #489, we do not know why our listener is not receiving the .connectClosed event.Should the
RTMPConnection.Code.connectClosed
be called in such situation? If not, how can get the event when unpublish (close) the connection?To Reproduce
Steps to reproduce the behavior:
LiveViewController.swift
streamName
anduri
set up.)rtmpConnection.close()
.private func rtmpStatusHandler(_ notification: Notification)
.Expected behavior
rtmpStatusHandler is called with .connectClosed event; in this case, printing logs with event info.
Smartphone (please complete the following information):
Device: Real device iPhone X
OS: iOS 13.3
Version: HaishinKit (1.0.8) via CocoaPods
The text was updated successfully, but these errors were encountered: