Search code examples
androidiframewebviewyoutube-api

Monitor Youtube iFrame player state in Android


How to monitor player state in youtube iframe . I need to monitor when player is in buffering state. Can anyone help me out.


Solution

  • On android if you use Youtube Player Api instead of Iframe you can easily get all callbacks

    Check https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayer