Replies: 2 comments 2 replies
-
The publish state may transition to idle in the following cases:
To reproduce this issue locally, logs with the trace level can be helpful: LBLogger.with(kHaishinKitIdentifier).level = .trace Handling can be implemented using the status property in RTMPConnection and RTMPStream:
|
Beta Was this translation helpful? Give feedback.
-
@shogo4405 forcing connection reset like this: ` await self.netStreamSwitcher.open(.ingest) is something that makes sense? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I noticed that while streaming something the HKStreamReadyState goes in ".idle", so I guess it stops the streaming.
Do you guys knows what cause the stream to go in idle state?
In my code I implemented a monitor every 15sec as follows:
Where self.resetRTMPConn() is:
This trick saved me since at some point it starts to stream again, but other times takes too many attempts.
Do you guys have a better approach?
What are the root cause of HKStreamReadyState in idle state?
thanks a lot!!!
Beta Was this translation helpful? Give feedback.
All reactions