我已經使用Webview
在我的應用中顯示一些html數據。我正在使用下面的代碼。webview中的Android youtube
WebView featureview = (WebView) findViewById(R.id.featureview);
WebSettings webSettings = featureview.getSettings();
webSettings.setJavaScriptEnabled(true);
featureview.loadData(featureDescription, "text/html", "utf-8");
一些HTML數據的已使用類似<iframe height='390' frameborder='0' width='640' allowfullscreen='' src='http://www.youtube.com/embed/8xgkw67o0Gc' title='YouTube video player'></iframe>
代碼嵌入視頻來自YouTube。但它給黑屏。代碼中有什麼問題?在這裏,我想補充我已經安裝了Flash播放器,並且正在嘗試使用Android 2.2設備。
您是否設法解決它? –
我也想知道你是否已經解決了這個問題,以及如何解決這個問題? –
查看我的答案在這裏http://stackoverflow.com/a/24592012/2371425 – Sakiboy