3

誰かが私を助けてくれますか

1.これは、YouTube ビデオ リンク ( http://www.youtube.com/watch?v=T1Wgp3mLa_Eなど) を使用してエミュレータで YouTube からビデオを再生することは可能ですか? そうでない場合、なぜですか?2.「はい」の場合、どのように?

VideoView を使用して YouTube 動画を再生しようとしましたが、

"Command PLAYER_INIT completed with an error or info PVMFErrCorrupt"logcat コマンドによるメッセージ。

4

1 に答える 1

1

エミュレーターでビデオが再生されません。

しかし、デバイスでこれを試してみてください..

WebView webview = new WebView(this); 
String htmlString = "<html> <body> <embed src=\"youtube link\"; type=application/x-shockwave-flash width="+widthOfDevice+" height="+heightOfDevice+"> </embed> </body> </html>"; 
webview.loadData(htmlString ,"text/html", "UTF-8");
于 2010-11-09T09:44:59.980 に答える