solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
506 stars 247 forks source link

RTSP Streaming not working in iOS When Local network permission Enabled IOS17 #443

Open Nandhu-89 opened 11 months ago

Nandhu-89 commented 11 months ago

I am using flutter_vlc_player for rtsp streaming. I am facing issue in iOS 16 when Local network permission enabled. If I disable local network permission rtsp streaming working well. I can't find the solution yet. In android it's working.Below is the code I used to initialize vlc player.

_videoPlayerController = VlcPlayerController.network( vidStreamURL, hwAcc: HwAcc.auto, autoPlay: true, options: VlcPlayerOptions( rtp: VlcRtpOptions([VlcRtpOptions.rtpOverRtsp(true)],), advanced: VlcAdvancedOptions( [VlcAdvancedOptions.networkCaching(10000)]), sout: VlcStreamOutputOptions( [VlcStreamOutputOptions.soutMuxCaching(10000)])), // );

mzkaoq commented 10 months ago

hi @Nandhu-89, I am facing the same problem now on iOS 17.3, did you come with any solution?

alishe79 commented 9 months ago

same here

peter9teufel commented 7 months ago

got the same issue, android works, ios does not start the rtsp stream. Disabling local network permission is not possible as my app's main purpose is to communicate with a local device.

Nandhu-89 commented 6 months ago

I resolved the issue by adding multicast entitlement.

MustafaGaber commented 5 months ago

I added multicast entitlement and still have the problem

Gabriellsp commented 2 months ago

@MustafaGaber Did you happen to solve the problem?

Gabriellsp commented 2 months ago

@Nandhu-89 What steps did you take to add multicast and avoid the problem of the player slowing down if the local network is enabled?

MustafaGaber commented 2 months ago

@MustafaGaber Did you happen to solve the problem?

I switched to Media Kit, it works with rtsp without the need for network entitlement

Gabriellsp commented 2 months ago

@MustafaGaber Did the mediakit prove to be performant for you on both Android and iOS? In my tests, VLC's performance is much better than the Media Kit.

If so, could you share with us how the media_kit configuration went in your project to obtain high performance in RTSP streams?

Gabriellsp commented 2 months ago

The player slowdown issue was detected in versions 14.7 and 17.3. In versions 15.3, 15.4 and 15.6, the slowdown problem did not occur. Below you will find the logs collected from the different iOS versions. The problem only happens if the Local Network permission is enabled.

Logs_MobileVlcKit_iOS14.7-WithProblems.log Logs_MobileVlcKit_iOS15.4-NoProblems.log Logs_MobileVlcKit_ios17.3-WithProblems.log Logs_MobileVlcKit-iOS15.3-NoProblems.log Logs_MobileVlcKit-iOS15.6-NoProblems.log