Merge 9ad5f7ba48
into 677670055e
This commit is contained in:
commit
bbf4e844d1
|
@ -15,7 +15,7 @@ extension AttachmentViewModel {
|
|||
func compressVideo(url: URL) async throws -> URL? {
|
||||
let urlAsset = AVURLAsset(url: url)
|
||||
|
||||
guard let track = urlAsset.tracks(withMediaType: .video).first else {
|
||||
guard let track = try await urlAsset.loadTracks(withMediaType: .video).first else {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue