I am currently developing an app for iOS 5 and above in which a video is played inside a custom UITableViewCell using an instance of AVQueuePlayer.
There are 'n' number of such custom cells playing 'n' number of videos.
I want to implement a functionality which disables the player from playing the video after a given time.
I have a countdown timer which displays the time left in a UILabel for disabling the player beneath the instance of AVQueuePlayer.
I have to update the timer after a minute(suppose) to show the time left for the disabling to take place. e.g. "5 mins left".
I am using NSTimer for this purpose. But, I dont know how to only reload or update the UILabel instance of the custom UITableViewCell. I have seen in some threads the use of the following method
- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation
But, if I do so when the video is playing, it stops and gets reloaded again.
Is there a better solution to this issue?