开发者

Adding custom links to Dailymotion embed

include js file "swfobject.js" js code is as follows:

var params = { allowScriptAccess: "always" };
var atts = { id: "mydmplayer" };
swfobject.embedSWF("http://www.dailymotion.com/swf/VIDEO_ID&enablejsapi=1&
playerapiid=dmplayer", 
"dmapiplayer", "425", "356", "8", null, null, params, atts);

I am using this code to embed video into my html. Now I want to create custom links like "play", 开发者_高级运维"fast forward" etc.

Could you please guide me, how to achieve this?


<script>
function play()
{
mydmplayer.playVideo();
}
</script>
<a onclick="play();" >Play</a>

it will play the video if paused. you have to use api parameters to start video automatically. play != start.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜