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

录像后加载文件失败 #1

Open
ccxdd opened this issue Apr 15, 2021 · 0 comments
Open

录像后加载文件失败 #1

ccxdd opened this issue Apr 15, 2021 · 0 comments

Comments

@ccxdd
Copy link

ccxdd commented Apr 15, 2021

从像册像选取视频文件没问题。iOS录像后返回不能正常显示,文件长度不对,Android同样问题,页面不能自动退出。

FKPhotos.cameraPicker(context,
                isAllowRecording: true,
                isOnlyAllowRecording: true,
                enableAudio: true,
                maximumRecordingDuration: Duration(seconds: 60))
            .then((value) {
          if (value == null) return;
          value.file.then((file) {
            if (file != null) {
              print(file.readAsBytesSync().length);
              // uploadFileAPI(file: file, isImage: false);
            }
          });
        });
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