flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Not playing local video when the file name contains space.

Open DamonChen117 opened this issue 3 years ago • 1 comments

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.

DamonChen117 avatar Aug 09 '21 03:08 DamonChen117

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)

kostov avatar Jan 18 '22 04:01 kostov