Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let data = "http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4"
- let a = NSURL(string: data)
- let asset = AVURLAsset(URL: a!, options: nil) as AVURLAsset
- let duration = asset.duration.seconds
- print("the duration is",duration)
Add Comment
Please, Sign In to add comment