views:

1035

answers:

5

I just want to figure out how to get a video's total time in seconds. Is there video metadata that loads or something?

A: 

Hi,

has anyone found a solution to this? One would think, that getting the length / duration of a video should be as granted as having an option to play the video.

And what about the currentTime? the (double) currentTime wont work anymore, unfortunately

Paul
A: 

Get the length of the video in bytes using NSdata. After that calculate how many bytes for playing one second of video. And you can calculate the length of the video:)

glenda
can you expand this answer? thanks.
Digital Robot
A: 

Why dont you simply use the (NSTimeInterval)duration property to get the videos length??

Sanyam Bhasin
A: 

Although I cant find a way to get the current movie elapsed time. Does anyone know how?

Sanyam Bhasin