[[PlayerToc(plugins)]] = Autostarter = This plugin encapsulates two nifty, advanced autostarting functionalities: 1. Only autostart a video the first XX visits, based upon a cookie. Useful if you want to draw the attention of new visitors, but don't want to annoy frequent visitors. 2. Autostart the video muted, and restart with sound when a user clicks the display. Useful if you want to draw attention, but do not want to scare users with sound suddenly coming out of their speakers. This plugin is compatible with version 4.1+ of the player. == Example == Here are two examples of the autostarter plugin in action, one with the ''count'' and one with the ''muted'' option. Below the player is the string of flashvars used. You can revisit the autostart behaviour of this plugin by clearing your flash cookies. Therefore, rightclick the player, go to the ''Settings...'' menu and set the ''Local storage'' to 0. [[JWPlayer(400,250,file=/player/testing/files/bunny.flv&plugins=autostarter&autostarter.count=1)]] {{{ file=/player/testing/files/bunny.flv&plugins=autostarter&autostarter.count=1 }}} [[JWPlayer(400,250,file=/player/testing/files/bunny.flv&plugins=/player/plugins/autostarter/autostarter.swf&autostarter.muted=true)]] {{{ file=/player/testing/files/bunny.flv&plugins=autostarter&autostarter.muted=true }}} == Configuration == The plugin is loaded with the flashvar ''plugins=autostarter''. This will automatically load the latest version of the plugin straight off our servers. It offers two flashvars for tweaking the plugin: * '''autostarter.count''' (''1''): The number of times a specific video should autostart. * '''autostarter.muted''' (''false''): If set ''true'', the player automatically starts the video muted and the '''count''' flashvar is ignored. When a user clicks the display, the video is restarted with sound. == Source code == The source code of this plugin can be obtained [changeset:HEAD/plugins/autostarter?old_path=%2F&format=zip in a zip] (click the zip links at the bottom) or through [http://subversion.tigris.org/ Subversion]: {{{ svn co http://developer.longtailvideo.com/svn/plugins/autostarter }}} If you don't have a Subversion client, check out [http://tortoisesvn.tigris.org/ Tortoise] (Windows) or [http://scplugin.tigris.org/ SC Plugin] (MAC). You don't need Adobe Flash to modify this plugin. Instead, you can edit the plugin with any text editor you like. The plugin can be compiled with the free, cross-platform [http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk MXMLC compiler]. See our [wiki:PluginsCompiling plugin compiling overview] for more info.