flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Not loading RTSP stream when Local Network permission granted (iOS)

Open mIwr opened this issue 4 years ago • 8 comments

When i'm trying to load the rtsp stream (remote camera), iPhone asks to grant access for local network (in both cases: When in app Info.plist there is the line with 'local network usage description' and when it there isn't). If grant access, then the download will be eternal and the frame won't appear. Or if i restrict access, all works fine. I tried to initialize controller with all available parameters, but it didn't help. Are there another solutions? P.S. For Android simillar scenario works fine

mIwr avatar Aug 30 '21 12:08 mIwr

I am having the same issue. Everything was working fine until I did a cocopods update and that is when it stopped working. Rtsp streaming works perfectly when it is not on a local network. This issue is also only an issue on a release build and appears to be working perfectly when the app runs in debug mode on the device.

dianventer avatar Sep 01 '21 18:09 dianventer

I found a solution for this issue. It is more related to basis of flutter plugin - MobileVLCKit. Actual 6.0.4 version of the plugin relies to MobileVLCKit 3.3.15. This version has problems with iOS 14+ (Local networks, also ip address 0.0.0.0 issue). As a temporary solution, you can manually delete stock MobileVLCKit 3.3.15 framework from Pods directory and force update MobileVLCKit to last version by add 'pod MobileVLCKit' in Podfile. Plus you can add these lines to your Info.plist:

  • Privacy - Local Network Usage Description
  • NSBonjourServices [_googlecast._tcp]

mIwr avatar Sep 21 '21 20:09 mIwr

Issue still exists in MobileVLCKit 3.5.1 and plugin 7.2.0 version.

rkyrychuk avatar Sep 06 '23 13:09 rkyrychuk

The above issue still exists. I am using flutter_vlc_player 7.3.1 (latest). We are suffering from this for last 20 days. Is there any solution available? Please help us to get rid of this, Thanks.

Nandhu-89 avatar Sep 25 '23 10:09 Nandhu-89