You can use the url of the video asset to make a AVURLAsset like this:
let videoAsset = AVURLAsset(url : sourceURL)
Then you need to get the video track of your video (AVAssetTrack) like this:
let videoAssetTrack = videoAsset.tracks(withMediaType: .video).first
then you can find its natural size :
let naturalSize = videoAssetTrack.naturalSize
Hope it solves the problem of getting the natural size of the video.
Post
Replies
Boosts
Views
Activity
You will need macOS 11 for Xcode 12.5+
Hi @niknasr , upon inspecting the browser console this is what i could see
Let me know if you need any more info.