Closed ClaireRimel closed 1 year ago
Also having this issue. Calling the constructor in a background thread also complains because the View's initWithFrame: needs to be called on the main thread. So damned either way.
Moreover, if we want an audio only experience, we don't need you creating view at all. So can you defer the UI creation until we ask for it?
@ClaireRimel, thanks for letting us know about this issue. This was fixed in 2.24.0, which was released recently. See release notes here: https://tokbox.com/developer/sdks/ios/release-notes.html.
Since this was fixed, I'm going to close this issue. If you're still able to reproduce, please let us know. Thanks!
Thank you @v-kpheng for your answer.
With this 2.4.0 version I observe a latency of 10sec between the call of doPublish() and the call of session.publish(publisher, error: &error) which make the view freezing during the 10sec.
On 2.3.1 version this latency was around 1-2 seconds
Here the Sample of my code
How is it possible to reduce this latency?
Thank you @v-kpheng for your answer.
With this 2.4.0 version I observe a latency of 10sec between the call of doPublish() and the call of session.publish(publisher, error: &error) which make the view freezing during the 10sec.
On 2.3.1 version this latency was around 1-2 seconds
Here the Sample of my code
How is it possible to reduce this latency?
@ClaireRimel, can you please file another issue? Reason being, it seems unrelated to the issue we just closed. Thanks!
Xcode
14.0
OpenTok via CocoaPods, pod version2.23.1
I implemented the publisher as showed on the Basic-Video-Chat project but on the instantiation of the Publisher, It's appears a warning
-[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness.
I have tried to set it on background thread, but it doesn't work, because it needs to be set on main thread.
How this warning can be fixed?