我正在通过使用该密码的网上电文在iPad上播放你的录像。
NSString *htmlString = [NSString stringWithFormat:@"<html>
<body>
<div id="player"> </div>
<script>
var tag = document.createElement( script );
tag.src = "http://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName( script )[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var done = false;
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player( player , {
height: %i ,
width: %i ,
videoId: %@ ,
events: {
onReady : onPlayerReady,
onStateChange : onPlayerStateChange
}
});
}
function onPlayerReady(evt) {
evt.target.playVideo();
}
function onPlayerStateChange(evt) {
if(evt.data==0)
{
window.location="http:\end";
}
}
function resizePlayer(width,height)
{
player.setSize(width, height);
}
</script>
</body>
</html>",
height,width, videoID];
问题在于,当我通过XCode安装我的手套时,它会进行罚款,但当Im使用ipa的手法时,就没有。