flutter_vlc_player
flutter_vlc_player copied to clipboard
Not playing local video when the file name contains space.
Version: 6.0.2 Platform: iOS
For the same file, when the name has NO space, vlc is working. When the name contains space, the video is not playing, the isInitialized is set to true, then nothing happen ever, just black screen.
Working workaround (for me):
controller = VlcPlayerController.file(File(filepath_with_spaces)); // doesn't work on iOS
controller = VlcPlayerController.file(File(Uri.file(filepath_with_spaces).path)); // works both on iOS and Android
(fixed: bracket was in wrong place)