Hi!
I am trying to make an app that displays a WebView showing an YouTube video.
The code is pretty straightforward:
public class TestvideoActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final WebView webView = (WebView) findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); webView.setWebChromeClient(new WebChromeClient()); // don't ask webView.loadUrl("http://jraf.org/static/tmp/html3.html"); }}And the contents of the html3.hml file is:
<html><body>Hello<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/B8WHKRzkCOY" frameborder="0"></iframe></body></html>Unfortunately on my Logitech Revue with the 3.1 update, I don't see any video, although the sound is playing.
On an Android tablet running 3.1 (also tried 3.2) this works as expected.
I also tried with a simple html file containing a <video> tag, the problem was the same (sound but no video).
Any help on this problem would be much appreciated!
As a side note: isn't there a bug tracker for GoogleTV specific issues?
Thanks a lot!
--
BoD