Skip to content

RTSP stream loads after more than 50 seconds on iOS 16, before the iOS 16 update it was working absolutely fine

I have developed an IP camera app for iOS in which I am playing RTSP streams using MobileVLCKit (ver: 3.3.0 and the latest one) but after the iOS 16 update, the load time of RTSP streams is increased to 40-50 seconds on iPhone 12 onwards while the stream loads fine on iPhone 11 and earlier. Before the iOS update, the stream was loading perfectly fine on every device(within 4-5 seconds).

I have added the following options to my player instance:

media.addOptions(["rtsp-tcp": true, "codec":"avcodec", "network-caching":500, "avcodec-hw":"none"])

**Also like this: **

media.addOptions(["--rtsp-tcp": true, "--codec":"avcodec", "--network-caching":500, "--avcodec-hw":"none"])

I have also tried adding the "multicast entitlement" key "com.apple.developer.networking.multicast" in info.plist but nothing is working to reduce this load time.

The video is attached for reference: It's iPhone 13 and in this the stream loads after 23-24 seconds.

https://www.dropbox.com/s/p8w2hzntgtguxif/WhatsApp%20Video%202022-10-18%20at%202.31.24%20PM.mp4?dl=0

Any way around fixing this issue or am I making any mistake while adding options to the player? Any help would be appreciated. Thanks

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information