Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Linking from URL

3 replies [Last post]

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

How can add autoplay option for this embeded code.i tried more times but its not working.please help me.

<embed src="http://content.bitsontherun.com/players/sj5d1oim-57694-36295.swf" width="640" autostart="true" height="387" bgcolor="#000000" allowfullscreen="true" allowscriptaccess="always"/>

You can't modify the embed code for Bits on the Run videos. Sorry!