Video, uploaded on S3 bucket, not playing through url in iOS app
The reason for this was that while uploading the video, the Content-Type for video was not setting due to which the video was not playing. Setting the Content-Type in form-data as well as in Policy, the video uploaded and played successfully.
Problems uploading video files to a existing bucket with AWS on iOS
try setting content type to video/mp4
just to mitigate possible unforeseen issues with MIME types.
I would also advise reading this, it contains some different methods for uploading, and dealing with threads as you do.
Related Topics
Compile Time Key Path Checking in Swift
Using Uilexicon to Implement Autocorrect in iOS 8 Keyboard Extension
Swift Change the Tableviewcell Border Color According to Data
How to Change Text Color of Actionsheet in Swiftui
How to Get Part of a String in Swift
Swift 3: Converting Data to String Returns a Nil Value
Ambiguous Use of Operator '-' in Swift with 'Abs()'
How to Set the iOS13 Uisegmentedcontrol Backgroundcolor to White
Swift Firestore Check If Documents Exists
How to Select All Text in a Uitextfield Using Swift
What Does "Arg = Exploded" Mean in Swift Crash Log
Running Swift Build in Terminal Leading to "Platform Path" Errors
Swift, Error Exc_Breakpoint (Code=1, Subcode=0X100695474)
How to Open Your App's Settings (Inside the Settings App) with Swift (iOS 11)