Thanks for your quick reply, the demo you sent works perfect, but when I add the code to insert the VIDEOKEY and the PLAYERKEY, it does not work, the video shows up, but does not autostart. Here is the code:
botr_{$video.video_key}_57694-36297.addVariable("autostart","true");should be
botr_{$video.video_key}_57694_36297.addVariable("autostart","true");(note the underscore). This is because JavaScript starts doing math on a string when it sees a dash.
First of all, you are using the {video_key}-{conversion_key}-{player_key} scheme. This has been deprecated, you should use {video_key}-{player_key} instead.
Furthermore it looks like you are using a player that is not in your account. It is quite possible that this other code has a hardcoded autostart=false. That will override any autostart parameters sent in a flashvar.
If I change you embed code to:
<script type="text/javascript" src="http://content.bitsontherun.com/players/gdbaUJPG-vAKOX3V6.js"> </script>
<script type="text/javascript"> botr_gdbaUJPG_vAKOX3V6.addVariable("autostart","true"); </script>Here vAKOX3V6 is a video player in your account. Even when I disable autostart within the player configuration, the flashvar will cause an autostart now.
At first glance this happens because you will need to replace a dash in the second line with an underscore like this:
<script type="text/javascript" src="http://content.bitsontherun.com/players/ywhbSEsY-u5qYY6D6.js"> </script>
<script type="text/javascript"> botr_ywhbSEsY_u5qYY6D6.addVariable("autostart","true"); </script>You need to use an underscore because a dash would trigger javascript to treat as a calculation; botr_ywhbSEsY minus u5qYY6D6 instead of a string, which doesn't make a lot of sense.
This question has received the maximum number of answers.