Using the constructor attempts to create a VideoPlayerController.file that will throw an UnimplementedError. The Web platform does not suppport dart:io, so avoid using the VideoPlayerController.file constructor for the plugin.
If you are using network-based videos, you will need to add the If you are using network-based videos, ensure that the following permission is present in yourĪndroid Manifest file, located in /android/app/src/main/AndroidManifest.xml: To determine the right combination of entries for your use case and supported iOS versions. The appropriate NSAppTransportSecurity permissions to your app's ist file, located If you need to access videos using http (rather than https) URLs, you will need to add A Flutter plugin for iOS, Android and Web for playing back video on a Widget surface.įirst, add video_player as a dependency in your pubspec.yaml file.