Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,381
    Thanks
    264
    Thanked 32 Times in 31 Posts

    using onplay with swfobject embed video

    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


    PHP Code:

    <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/>
    Last edited by durangod; 11-17-2012 at 09:25 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •