Closed rupamking1 closed 3 years ago
You can use this.
VideoPlayerController fromUint8List(
String path,
Uint8List bytes, {
Future<ClosedCaptionFile>? closedCaptionFile,
VideoPlayerOptions? videoPlayerOptions,
}) {
final File file = File(path);
file.writeAsBytesSync(bytes);
return VideoPlayerController.file(
file,
closedCaptionFile: closedCaptionFile,
videoPlayerOptions: videoPlayerOptions,
);
}
Play video from Uint8List