I have an activity which is displaying a web page using a WebView. Within that page, there is a link to a YouTube video (so it's not a video I can or need to embed).
The problem is that the video won't play - I can see the video preview image with a click icon, but clicking it has no response. Is there anything that can be done?
public class DisplayWebPage extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.display_web_page);
Bundle extras = getIntent().getExtras();
String url = extras.getString("url");
WebView webview = (WebView)findViewById(R.id.WebView1);
webview.setWebViewClient(new WebViewClient());
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl(url);
}
}