Hi. I am trying to get embed flash video on webview from IMDb Video: Hannibal.
I tryed with:
That doesn't work for me.. Just blank screen.
Same...
Tryed with webview.loadDatBaseURL(null, html, "text/html", "UTF-8", "");
Nothing..
Only thing that works is
But only youtube videos.
Can you help me please!
PS: I am testin on 2.2 Froyo device.
I tryed with:
Code:
String html = "<object width=\"425\" height=\"344\"><param value=\"youTUBElink"><embed src=\"youtTUBElink\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"425\" height=\"344\"></embed></param></object>";
String mimeType = "text/html";
String encoding = "utf-8";
WebView webview = (WebView) findViewById(R.id.web);
webview.getSettings().setPluginsEnabled(true);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadData(html ,"text/html", "UTF-8");
That doesn't work for me.. Just blank screen.
Code:
String html = "<html> <body><embed src=\"http://www.imdb.com/video/imdb/vi1011875865\" type=\"application/x-shockwave-flash\" width=\"200\" height=\"200\"></embed>TEST</body> </html>";
Same...
Tryed with webview.loadDatBaseURL(null, html, "text/html", "UTF-8", "");
Nothing..
Only thing that works is
Code:
String html2="<iframe class=\"youtube-player\" autohide=\"1\" type=\"text/html\" allowfullscreen=\"true\" width=\"300\" height=\"300\" src=\"http://www.youtube.com/embed/NRHTdNWhAc8?fs=1 frameborder=\"0\">";
But only youtube videos.
Can you help me please!
PS: I am testin on 2.2 Froyo device.