title: How to add loader with LibVLC in Android using its event handler?
body: <p>In my application i have used <code>LibVLC library</code> to show <code>live video streaming</code>. Everything is working fine; Only problem is it takes 8-10 seconds to buffer and play video, and during that period black screen appears which is <code>LibVLC</code>'s video surface. I want to show <code>Progress dialog</code> in this process. </p>
  
  <p>I tried to add <code>Progress dialog</code> on <code>Activity</code> start and dismiss it on, <code>LibVLC'</code>s Playing event.</p>
  
  <pre><code>case EventHandler.MediaPlayerPlaying:
                      Log.e(TAG, "video is playing");
  
                      pd.dismiss();
  </code></pre>
  
  <p>But problem is, after Playing event, <code>LibVLC</code> starts buffering of video, which means after dismissing <code>Progress dialog</code> still for 5-6 seconds black screen appears.</p>
  
  <p>So, I want know, If there is any method to detect <code>buffering</code>? or to show <code>progress dialog</code> till video gets started.</p>
  
  <p>Thank you.</p>