Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
muhaned85 opened this issue Sep 24, 2023 · 0 comments

Comments

@muhaned85
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant