开发者

Adding custom links to Dailymotion embed

开发者 https://www.devze.com 2022-12-25 02:51 出处:网络
include js file \"swfobject.js\" js code is as follows: var params = { allowScriptAccess: \"always\" };

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

精彩评论

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

关注公众号