I was just wondering if there was a way to include a variable in the URL which would then load a specific video in a player from Bits on the Run?
I used to be able to do it with brightcove, using the code:
<script type="text/javascript">
var qs = location.search.substring(1);
var nv = qs.split('&');
var url = new Object();
for(i = 0; i < nv.length; i++)
{
eq = nv[i].indexOf('=');
url[nv[i].substring(0,eq).toLowerCase()] = unescape(nv[i].substring(eq + 1));
}
</script>
</head>
<body>
<!-- Start of Brightcove Player -->
<SCRIPT SRC="http://admin.brightcove.com/js/experience_util.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT>
var config = new Array();
/*
* feel free to edit these configurations
* to modify the player experience
*/
config["videoId"] = url.videoid; //the default video loaded into the player
config["videoRef"] = null; //the default video loaded into the player by ref id specified in console
config["lineupId"] = url.lineupid;
config["playerTag"] = null; //player tag used for identifying this page in brightcove reporting
config["autoplay"] = false; //tells the player to start playing video on load
config["preloadBackColor"] = "#8d9395"; //background color while loading the player
/* do not edit these config items */
config["playerId"] = 6149311;
config["width"] = 520;
config["height"] = 509;
createExperience(config);
</SCRIPT>
<!-- End of Brightcove Player -->
<br /><br />
<a href="ingrid.html?lineupId=2227967&videoId=2227965">Short Lineup, Walking the Halls</a> | <a href="ingrid.html?lineupId=6141384&videoId=2205546">Long Lineup, Plant and Photocopier</a>
<br />
<a href="ingrid.html?lineupId=6141384">Long Lineup, No Video Specified</a> | <a href="ingrid.html">Nothing Specified, Resorts to Defaults</a>
<br /><br />
<script type="text/javascript">
if (url["videoid"] == undefined && url.lineupid == undefined) {
document.write("Nothing is defined.");
}
else {
if (url["lineupid"] != undefined) {
document.write("Lineup is defined.<br />");
}
if (url["videoid"] != undefined) {
document.write("Video is defined.<br />");
}
}
</script>
Is there any way of doing that with Buts on the run?
Thanks,
Neil

please see - http://www.longtailvideo.com/support/tutorials/Javascript-API-Examples
and find examples like
http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_3-2-1-0.html#http://content.bitsonthe...
http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_3-2-2-0.html?http://content.bitsonthe...
http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_3-2-3-0.html?file=http://content.bits...
please note that the examples uses swfobject v.2.1 - http://code.google.com/p/swfobject/