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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AVFileType+Extensions.swift #748

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

isayeter
Copy link

when I'm using iOS13.5 simulator, everything works fine, however when I'm using iOS15 simulator, when I pick a video from photo library I got this error;

Could not calculate the thumbnail size.
Could not calculate the thumbnail size.
馃柤 YPImagePicker. YPVideoFiltersVC.swift -> save() -> Export of the video failed. Reason: Optional(Error Domain=AVFoundationErrorDomain Code=-11838 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The operation is not supported for this media., NSLocalizedDescription=Operation Stopped, NSUnderlyingError=0x6000015c81b0 {Error Domain=NSOSStatusErrorDomain Code=-16976 "(null)"}}) (line: 218)

with the configuration of:

config.video.fileType = .mp4

After analyzing your source code, I noticed that it returns "None" as the extension, I was suspected maybe this was the reason,I have fixed this function, everything works on iOS 15 simulator now.

when I'm using iOS13.5 simulator, everything works fine, however when I'm using iOS15 simulator, when I pick a video from photo library I got this error;

```
Could not calculate the thumbnail size.
Could not calculate the thumbnail size.
馃柤 YPImagePicker. YPVideoFiltersVC.swift -> save() -> Export of the video failed. Reason: Optional(Error Domain=AVFoundationErrorDomain Code=-11838 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The operation is not supported for this media., NSLocalizedDescription=Operation Stopped, NSUnderlyingError=0x6000015c81b0 {Error Domain=NSOSStatusErrorDomain Code=-16976 "(null)"}}) (line: 218)
```

with the configuration of:
```
config.video.fileType = .mp4
```

After analyzing your source code, I noticed that it returns "None" as the extension, I was suspected maybe this was the reason,I have fixed this function, everything works on iOS 15 simulator now.
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

Successfully merging this pull request may close these issues.

None yet

1 participant