jonataslaw / jonataslaw/VideoCompress

includeAudio & sharing intent issue (iOS)

Open
#80 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
262
Forks
344
PR merge metrics
No merged PRs in 30d

Description

This issue is related to iOS only.

My app is taking file from sharing intent ([example](https://pub.dev/packages/receive_sharing_intent/example)) and compressing it using video_compress library. If `includeAudio=true` everything works as expected. But when it is `false` compression fails with error:

```
flutter: Invalid argument(s) (path): Must not be null
```

During debugging in Xcode I have found that json object in line below has only one field "isCancel":

https://github.com/jonataslaw/VideoCompress/blob/ce37a595c218a271fcde150d0d29a4bb5270ca7b/ios/Classes/SwiftVideoCompressPlugin.swift#L243

And this is happening because below line hits `return`:

https://github.com/jonataslaw/VideoCompress/blob/ce37a595c218a271fcde150d0d29a4bb5270ca7b/ios/Classes/SwiftVideoCompressPlugin.swift#L98

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.