This commit is contained in:
woxtu 2024-05-08 10:37:40 +02:00 committed by GitHub
commit bbf4e844d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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
}