Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-17-2012, 12:56 PM   PM User | #1
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
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..
durangod is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:40 AM.


Advertisement
Log in to turn off these ads.