-
|
Hi, I want to monitor the current upload bitrate (like real-time bandwidth usage). I see RTMPStream.info. However, I get this error:
I can’t modify the library. How can I safely access currentBytesPerSecond for real-time bandwidth monitoring without violating Swift 6 actor boundaries? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I missed making RTMPStreamInfo conform to Sendable. #1774 Real-time retrieval can be done using StreamBitRateStrategy: |
Beta Was this translation helpful? Give feedback.
-
|
Thank you so much |
Beta Was this translation helpful? Give feedback.
I missed making RTMPStreamInfo conform to Sendable. #1774
Real-time retrieval can be done using StreamBitRateStrategy:
https://github.com/HaishinKit/HaishinKit.swift/wiki/Moving-from-1.9.x-APIs-to-2.0.0#200-3