Webview with video

0

Hello everyone, I've been trying to find a way to run web site urls, which has a post and in this post has a video, I've searched and I've seen this:

 webview.getSettings().setJavaScriptEnabled(true);
    webview.setWebChromeClient(new WebChromeClient());
    webview.getSettings().setPluginState(WebSettings.PluginState.ON);

It arrow in the webview a chrome client and thus runs the video of a link for example ...

I want to know how to do in the application to implement a better player, I know it involves more things besides the webview but so far I have not found

link

This link above is from the Letters app in it you can see the lyrics and videos of the songs, I wanted something that would bring me that [video player] that this app uses, I believe it might be an API, but I can ta talking bobeira, in it has the options of resolution of the video type HD or FULL HD, below it has prints that show what I want to say, who has a tutorial of how to do something similar will help me and much ...

    
asked by anonymous 01.12.2016 / 18:11

1 answer

0

You will need to use the Youtube API.

link

The process seems complicated but it is not implemented in my application in a few minutes.

Detelha: can not add direct from the gradle, it is necessary to add a right .jar in the lib.

    
01.12.2016 / 21:47