title: Android: how to detect a video is being played in WebView?
body: <p>I am working on an App and YouTube.com is embedded into a WebView. Videos cannot be played when I click any ones (it is in loading status forever). So I try to use VideoView or YouTubePlayerFragment to play videos when user clicks video play button. My question is: Are there any ways to detect that user has clicked play button?</p>
  
  <p>I added below listener on WebView, but the hr is insufficient to tell use clicks play button. </p>
  
  <pre><code>    webView.setOnTouchListener(new View.OnTouchListener() {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              WebView.HitTestResult hr = ((WebView)v).getHitTestResult();
  
              return false;
          }
      });
  </code></pre>