首先获取视频的ID:
youku-video-autoplay-code_img1

添加自动播放代码(方法1):

<embed src="http://player.youku.com/player.php/sid/填写视频ID处/v.swf?VideoIDS=填写视频ID处&embedid=&isAutoPlay=true&embedid" allowFullScreen="true" quality="high" width="426" height="341" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>

添加自动播放代码(方法2):

<div id="youkuplayer"></div>
<script type="text/javascript" src="http://player.youku.com/jsapi">
player = new YKU.Player('youkuplayer',{
	client_id: 'db28698382d53e23',
	vid: 'XNjM3MDM0OA', //填写视频ID
	autoplay: true
});
</script>