video not showing when loading embedded video from youtube i

All your problems with Audio, Video and Images.

video not showing when loading embedded video from youtube i

Postby 5909130 » Tue Jul 31, 2012 11:13 am

i am new to android development , and i am trying to load a movie from youtube in a webview .
but the problem is that the sound is playing but i can't see any movies ....
the video is not showing .... only sound ..




Code: Select all
// webview
       WebView webView = new WebView(this);
       
       
       
        // webSettings.setBuiltInZoomControls(true);
        webView.setWebChromeClient(new WebChromeClient()); 
         
        //webView.setWebViewClient(new WebViewClient());
       
        webView.getSettings().setJavaScriptEnabled(true);
       
       
        String data = "<iframe  src='http://www.youtube.com/embed/g6csOdF0LF8' frameborder='0' allowfullscreen></iframe>";   
        webView.loadData(data, "text/html", "UTF-8");
       webView.getSettings().setCacheMode(MODE_WORLD_WRITEABLE);
       webView.getSettings().setPluginsEnabled(true);
       
   
       
        mview.addView(webView);
5909130
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jul 31, 2012 11:01 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google [Bot] and 15 guests