...

View Full Version : using onplay with swfobject embed video



durangod
11-17-2012, 12:56 PM
Hi i have a video page with my videos all listed and they are embeded objects.

I know jw player has something like this but i dont want to have to convert.

Can i used onPlay(function() ...... with an object?


Im trying to count and track how many times a vid has been played.


Here is the object div





<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" id="player" name="player" align="middle">
<param name="movie" value="player.swf" />
<param name="play" value="false" />
<param name="quality" value="high" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=<?=$ROOT?>/movies/<?=$sql_array->vid_id?>.flv&image=<?=$ROOT?>/movies/<?=$sql_array->vid_id?>.jpg" />

<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="player.swf" width="320" height="240" align="middle">
<param name="play" value="false" />
<param name="quality" value="high" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=<?=$ROOT?>/movies/<?=$sql_array->vid_id?>.flv&image=<?=$ROOT?>/movies/<?=$sql_array->vid_id?>.jpg" />
<!--<![endif]-->

<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<br/>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum