file.dart icon indicating copy to clipboard operation
file.dart copied to clipboard

android.system.ErrnoException: open failed: ENOENT (No such file or directory)

Open muhaned85 opened this issue 2 years ago • 0 comments

Future loadformmemory() async { final Uint8List assetData = await readAssetFileBytes(); final Directory tmp = await memoryFileSystem.systemTempDirectory.createTemp("mem_"); inMemoryFile = tmp.childFile('m.mp4');

inMemoryFile.writeAsBytes(assetData, flush: true); } loadformmemory().then((value) {

  _controller = VideoPlayerController.file( inMemoryFile )
    ..initialize().then((_) {
      videoisloaded = true;
      // Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
      setState(() {});
    });
    when play video raise Exception no file

muhaned85 avatar Sep 24 '23 04:09 muhaned85