Open tzt1994 opened 1 year ago
日志如下: flutter: 路径(true: /var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord screenRecord20230219150228 startRecording: w x h = 1290 x 2796 pixels Error Error Domain=NSCocoaErrorDomain Code=4 "“screenRecord20230219150228.mp4” couldn’t be removed." UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord20230219150228.mp4, NSUnderlyingError=0x2819f1260 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} flutter: >>> Start Record Response Output: flutter: File: File: '/var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord20230219150228.mp4' flutter: Event Name: startRecordScreen flutter: Progressing: true flutter: Message: Started Video flutter: Success: false flutter: Video Hash: 37b335c0b02a11ed88c433282341c1c7 flutter: Start Date: 1676793089036 flutter: End Date: 0
flutter: 路径(true: /var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord screenRecord20230219150228 startRecording: w x h = 1290 x 2796 pixels Error Error Domain=NSCocoaErrorDomain Code=4 "“screenRecord20230219150228.mp4” couldn’t be removed." UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord20230219150228.mp4, NSUnderlyingError=0x2819f1260 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} flutter: >>> Start Record Response Output: flutter: File: File: '/var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord20230219150228.mp4' flutter: Event Name: startRecordScreen flutter: Progressing: true flutter: Message: Started Video flutter: Success: false flutter: Video Hash: 37b335c0b02a11ed88c433282341c1c7 flutter: Start Date: 1676793089036 flutter: End Date: 0
开启录制返回的success字段是false,这个日志是在录制前,会把文件先删除抛出的错误 这段代码,有什么用意
日志如下:
flutter: 路径(true: /var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord screenRecord20230219150228 startRecording: w x h = 1290 x 2796 pixels Error Error Domain=NSCocoaErrorDomain Code=4 "“screenRecord20230219150228.mp4” couldn’t be removed." UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord20230219150228.mp4, NSUnderlyingError=0x2819f1260 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} flutter: >>> Start Record Response Output: flutter: File: File: '/var/mobile/Containers/Data/Application/5D056127-89C3-49DF-B9DF-EF87403D989A/Documents/screenRecord20230219150228.mp4' flutter: Event Name: startRecordScreen flutter: Progressing: true flutter: Message: Started Video flutter: Success: false flutter: Video Hash: 37b335c0b02a11ed88c433282341c1c7 flutter: Start Date: 1676793089036 flutter: End Date: 0
开启录制返回的success字段是false,这个日志是在录制前,会把文件先删除抛出的错误 这段代码,有什么用意![WX20230219-154832@2x](https://user-images.githubusercontent.com/15625580/219935994-ec58c402-b7e1-481b-9b81-328633dacf6e.png)