I just finished a project where I use webwiew to play a video. Now they will ask me to replace part of webview with a user player. The player must be able to handle HLS.
If I use VideoView and MediaController, I can play live. But unfortunately, MediaController has its own controls. I want my own controls and where I am stuck.
So far I have tried:
- To write the MediaController class again and try to change the location. It did not work because I could not clear all errors due to dependencies.
- I tried using vidtry code (http://github.com/commonsguy/vidtry) for the link, but not luck.
- I tried to create a class that extends MediaController, but it didnt work either.
I was in almost every thread on Stackoverflow regarding a custom media player, but couldn't find the information to get me started.
Is it possible to create a custom media player class without using the NDK?
If someone knows how to create a custom media player class, please help me.
Thanks in advance!
Lazy ninja
source share