有人可以帮我吗
1.这是否可以使用 YouTube 视频链接在模拟器上播放来自 YouTube 的视频(例如:http ://www.youtube.com/watch?v=T1Wgp3mLa_E )?如果不是,那为什么?2.如果是,那怎么办?
我尝试使用 VideoView 播放 YouTube 视频,但得到了
"Command PLAYER_INIT completed with an error or info PVMFErrCorrupt"
通过 logcat 命令发送消息。
有人可以帮我吗
1.这是否可以使用 YouTube 视频链接在模拟器上播放来自 YouTube 的视频(例如:http ://www.youtube.com/watch?v=T1Wgp3mLa_E )?如果不是,那为什么?2.如果是,那怎么办?
我尝试使用 VideoView 播放 YouTube 视频,但得到了
"Command PLAYER_INIT completed with an error or info PVMFErrCorrupt"
通过 logcat 命令发送消息。
视频无法在模拟器上播放。
但它可能在设备上试试这个..
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");