{"id":6703,"date":"2014-04-22T04:37:31","date_gmt":"2014-04-22T04:37:31","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/jwplayer-detecting-the-start-collection-of-common-programming-errors-2\/"},"modified":"2014-04-22T04:37:31","modified_gmt":"2014-04-22T04:37:31","slug":"jwplayer-detecting-the-start-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/jwplayer-detecting-the-start-collection-of-common-programming-errors-2\/","title":{"rendered":"jwplayer &#8211; detecting the start-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to detect a start click in jwplayer. I am embedding it via swfobject so the method is slightly different from the example in the api, http:\/\/www.longtailvideo.com\/support\/jw-player\/jw-player-for-flash-v5\/16024\/listening-for-player-events<\/p>\n<p>I have tried<\/p>\n<pre><code>var flashvars = {\n    'file':'xxx',\n    'streamer':'xxxxxx',\n'image':'xxxxx',\n'plugins':'xxxxx',\n'gapro.accountid':'xxxx',\n'gapro.trackstarts':'xxxx',\n'gapro.trackpercentage':'xxxx',\n'gapro.tracktime':'xxxx',\n'logo.file':'xxxxx',\n'logo.link':'xxxx',\n'logo.hide':'xxxx',\n'logo.position':'xxxx'\n<\/code><\/pre>\n<p>};<\/p>\n<pre><code>jwplayer().onPlay(function() {alert('it has started'});\n<\/code><\/pre>\n<p>jwplayer() is not defined, how do I defined an object to detect the click?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to detect a start click in jwplayer. I am embedding it via swfobject so the method is slightly different from the example in the api, http:\/\/www.longtailvideo.com\/support\/jw-player\/jw-player-for-flash-v5\/16024\/listening-for-player-events I have tried var flashvars = { &#8216;file&#8217;:&#8217;xxx&#8217;, &#8216;streamer&#8217;:&#8217;xxxxxx&#8217;, &#8216;image&#8217;:&#8217;xxxxx&#8217;, &#8216;plugins&#8217;:&#8217;xxxxx&#8217;, &#8216;gapro.accountid&#8217;:&#8217;xxxx&#8217;, &#8216;gapro.trackstarts&#8217;:&#8217;xxxx&#8217;, &#8216;gapro.trackpercentage&#8217;:&#8217;xxxx&#8217;, &#8216;gapro.tracktime&#8217;:&#8217;xxxx&#8217;, &#8216;logo.file&#8217;:&#8217;xxxxx&#8217;, &#8216;logo.link&#8217;:&#8217;xxxx&#8217;, &#8216;logo.hide&#8217;:&#8217;xxxx&#8217;, &#8216;logo.position&#8217;:&#8217;xxxx&#8217; }; jwplayer().onPlay(function() {alert(&#8216;it has started&#8217;}); jwplayer() is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6703","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6703"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6703\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}