1

I need to know when an HTML video started playing. I see that when it does this little play icon appears in the status bar.

I would like to know if my iOS device has that little play icon in the status bar or not.

Is there a method to call in order to know it?

Abramodj
  • 5,709
  • 9
  • 49
  • 75

2 Answers2

2

Normally you would capture one of these notifications:

MPMoviePlayerWillEnterFullscreenNotification
MPMoviePlayerDidEnterFullscreenNotification

But since it's from a UIWebView you will not receive these notifications, You might try something like this.

Community
  • 1
  • 1
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
0

Html5 specifies

media.played
Returns a TimeRanges object that represents the ranges of the media resource that the user agent has played.

But I'm not sure how many browsers yet support this. The specification suggests that no browser has full support for the API.

nes1983
  • 15,209
  • 4
  • 44
  • 64
  • Hi nes, i see you edited the title of my question. But like this meaning is different! Infact mine was not a question about html5, but about iOS. – Abramodj Apr 15 '12 at 11:26