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
2009-10-18 16:53:45
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
2010-03-04 05:58:13
can you expand this answer? thanks.
Digital Robot
2010-03-14 21:14:13
A:
Why dont you simply use the (NSTimeInterval)duration property to get the videos length??
Sanyam Bhasin
2010-06-29 20:52:04
A:
Although I cant find a way to get the current movie elapsed time. Does anyone know how?
Sanyam Bhasin
2010-06-29 20:56:13
A:
jeeva
2010-08-30 08:41:46