Reputation: 6591
I am trying to play a YouTube video using WebView. To do this I use the following code but it doesn't work for me. It works in system browser.
<html>
<head>
<style type=\"text/css\">
body{ background-color: transparent; color: white; }
</style>
</head>
<body style=\"margin:0\">
<embed id=\"yt\" src=" +'"'+youTubeDetails.getVideoUrl()+'"'+"type=\"application/x-shockwave-flash\" width=\"%0.0f\" height=\"%0.0f\">
</embed>
</body>
</html>
Upvotes: 0
Views: 617
Reputation: 27294
Try to activate the plug-ins into your WebView:
mWebView.getSettings().setPluginsEnabled(true);
Upvotes: 1