I am succeeded to play streamed Youtube video from HTML5 content in Webview in Android but now problem is that video plays only first time. After that VideoView
Add in your chrome client :
@Override public void onPrepared(MediaPlayer mp) {
customViewCallback.onCustomViewHidden();
}
where customViewCallback = callback;
I had this problem as well. I had to add a seek(0). Seems like the next video played from exactly where the last video ended. So I had to go to the beginning of the video before playing.
You got a video working inside a WebView
with HTML5? Congrats! I failed trying to do that :(
To fix my issue I ended up leaving a place holder in the HTML and handling the video from native code using the MediaPlayer class.