So, it works when using WebView.setPluginsEnabled(true). Well, it works
until setting up a WebViewClient.

WebView webView = (WebView) findViewById(R.id.content_web_view);


 webView.getSettings().setPluginsEnabled(true);

webView.setWebViewClient(new WebViewClient() {}); // MARK

 webView.loadUrl("
http://www.fscklog.com/2009/07/worms-landet-im-app-store.html";);

Without the line marked with "MARK" it works, with the line it doesn't. I
get the error ("vnd.youtube:PZF... / web page not available") as seen in the
screenshot I attached to this mail.

I suspect that I need to overload loadResource() or something like that and
delegate to the appropriate plugin, but how? Or is there any way to not use
the WebViewClient and still get notified when it is starting and finishing
the page loading?

Cheers,
Mariano


On Thu, Jul 9, 2009 at 9:03 PM, Mariano Kamp <[email protected]> wrote:

> Hi,
>   when accessing a website with embedded YouTube video from within the
> browser, I can play the video. When accessing it from WebView I haven't been
> able to do that. Is that not possible or is there anything I do wrong?
>
> WebView webView = (WebView) findViewById(R.id.content_web_view);
>
> webView.loadUrl("
> http://strobist.blogspot.com/2009/07/creative-light-launches-with-class.html
> "); // sample url contains videos
>
>
> Cheers,
>
> Mariano
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

<<attachment: device.png>>

Reply via email to