title: Custom MediaPlayer class in android
body: <p>I have just finished a project where I use a webwiew for video playback. Now I am asked to replace the webview part with a custom player. The player should be capable to handle HLS.</p>
  
  <p>If I use VideoView and MediaController, I can play live stream. But unfortunately, the MediaController has its own controls. I want my own controls and thats where I am stuck.</p>
  
  <p>So far I tried:</p>
  
  <ol>
  <li>To write the MediaController class all over again and try to change
  the layout. It didnt work because I could not clear all the errors
  due to the dependencies.</li>
  <li>I tried using vidtry code (<a href="http://github.com/commonsguy/vidtry" rel="nofollow noreferrer">http://github.com/commonsguy/vidtry</a>) for
  reference but no luck.</li>
  <li>I tried to build a class that extends MediaController but that didnt
  work either.</li>
  </ol>
  
  <p>I have been in almost every thread on Stackoverflow regarding custom media player but couldnt find information to get me started.<br>
  Is it possible to create a custom media player class without using NDK?<br>
  If someone knows how to create a custom media player class, please help me.<br></p>