RootEncoder-iOS icon indicating copy to clipboard operation
RootEncoder-iOS copied to clipboard

Streaming Freeze on iOS 14.X.X and 15.X.X Devices

Open vitkuzmenko opened this issue 7 months ago • 16 comments

Hello,

I'm experiencing an issue with streaming on iOS devices running versions 14.X.X and 15.X.X, (iOS 16 is not tested). The stream freezes after a few seconds, and the console displays a large number of the following logs:

2024-07-10 17:45:24.352996+0300 app[907:59864] [connection] nw_flow_add_read_request [C2.1 XX.XX.XX.XX:XXX ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] already delivered final read, cannot accept read requests

When I comment out the call to videoPacketizer?.createAndSendPacket in RtspSender.swift, the app no longer freezes, but the logs continue to appear. And of course stream is not working.

Notably, this problem does not occur on iOS 17.

Video with demonstration: https://drive.google.com/file/d/1i7_uH4QSSPG_GO2QMQxCMlco2y19Hpu4/view

vitkuzmenko avatar Jul 10 '24 14:07 vitkuzmenko