Is there a way to get the current time elapsed of a youtube video on iphone?
I'm embedding the YouTube player in a UIWebView.
Is there a way to get the current time elapsed of a youtube video on iphone?
I'm embedding the YouTube player in a UIWebView.
The best solution would be not to use a UIWebView but to roll your own Foundation based video player. If you utilise the AVPlayer class and stream the YouTube video into a AVUrlAsset (I think, from the top of my head).
The link to the documentation is:
This way you can utilise KVO for monitoring the current play state for display, or other, purposes. There is a sample AVPlayer application on the Apple Developer site that you can reference to get you going.