tags:

views:

73

answers:

1

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 newbie to javascript and SWF.

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 acheive this? Please reply ASAP. It's urgent.

I would be very thankful to you.

A: 
<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.

Polat Alemdar