The Dash Player has a built in mechanism for providing any configuration (including FlashVars) using an external configuration file. These configuration files are located in the config directory next to the actual player SWF file. Within this directory, you can specify any number of different configuration XML files that can then be referenced using the flashvar config. However, when you provide this FlashVar, you should not include the ".xml", but just give the name of the configuration. For example, if you would like for your player to use the configuration file config/myconfig.xml, you would simply need to provide config=myconfig as the Flash Var to the player. This was done for security reasons.
Each of the config files located in this directory should follow the following schema...
<params>
<license><!-- Enter your License here --></license>
<gateway><!-- Enter your Drupal Gateway URL here --></gateway>
<apiKey><!-- Enter your Drupal Services API Key here --></apiKey>
<baseURL><!-- Enter the Base URL for your site here --></baseURL>
<flashvars>
<!-- You can specify any flashvars
here by providing the name of the
flashvar as the tag, and the value in
between those tags. -->
</flashvars>
</params>
license | This is where you will place your license if you purchase a license for commercial use. | |
gateway | Drupal Only | This is the URL to your Drupal Services Gateway. |
apiKey | Drupal Only | This is the Services API Key to provide a secure connection between the player and your Drupal site |
baseURL | This is the Base URL of your domain name. For this site, this value is http://www.tmtdigital.com | |
flashvars | Allows you to pre-define flash variables so that they are not required when you actually embed the player in your page. For example, if you wish to have all your players autostart the media, then you can provide a <autostart>true</autostart> tag within this flashvars tag. |