You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_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
The text was updated successfully, but these errors were encountered:
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) {
The text was updated successfully, but these errors were encountered: