hi, everyone. here's my code for youtube player. it works fine on iphone when i click the done button on the left corner. but if run it on iPad, it returns me nothing beside the video starting picture(cannot close the youtube player window).
if(Titanium.Network.online == true) { var embed_html = '<html><center>'+ '<object style="height: 200px; width: 280px">'+ '<param name="movie" value="http://www.youtube.com/v/' + youtube.item(0).text + '"></param>'+ '<param name="allowFullScreen" value="true"></param>'+ '<param name="allowScriptAccess" value="always"></param>'+ '<embed src="http://www.youtube.com/v/' + youtube.item(0).text + '" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344">'+ '</object>'+ '</center></html>'; var vid_view = Ti.UI.createWebView({ top:1200, left:10, right:10, width:'100%', height:200, html:embed_html }); scrollView.add(vid_view); }anyone can help me? thanks ps: Titanium SDK:1.3.2, iPhone SDK 4.0
Your Answer
Think you can help? Login to answer this question!