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

视频拍摄完成后 页面卡主没有播放拍摄的视频 #10

Open
xiongxiru opened this issue Mar 10, 2020 · 3 comments
Open

视频拍摄完成后 页面卡主没有播放拍摄的视频 #10

xiongxiru opened this issue Mar 10, 2020 · 3 comments

Comments

@xiongxiru
Copy link

xiongxiru commented Mar 10, 2020

下载了demo运行后 点击仿微信拍摄 视频拍摄完成后的代理回调不执行 我断点了一下 下面截图中的state是AVAssetWriterStatusFailed 请问这个是怎么回事呢 机型是iPhoneX 13.3.1
截屏2020-03-10下午7 36 22

@wsl2ls
Copy link
Owner

wsl2ls commented Mar 11, 2020

下载了demo运行后 点击仿微信拍摄 视频拍摄完成后的代理回调不执行 我断点了一下 下面截图中的state是AVAssetWriterStatusFailed 请问这个是怎么回事呢 机型是iPhoneX 13.3.1
截屏2020-03-10下午7 36 22

应该是一开始视频就写入失败了,就没有执行完成写入语句,我改了一下判断语句 if(_assetWriter && self.isStartWriting) { } ,你可以更新一下再试试

@wsl2ls
Copy link
Owner

wsl2ls commented Mar 11, 2020

@xiongxiru

@wsl2ls
Copy link
Owner

wsl2ls commented Apr 9, 2020

@xiongxiru

_avCaptureTool.videoSize = CGSizeMake(self.view.width * 0.8, self.view.height * 0.8);
这样设置写入的视频大小试试,

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

2 participants