This has been incredibly frustrating. Impossible to post examples because the documentation neglects to cover this subject in full. So all attempts are like grabbing at the wind to catch a fly.
Regardless, I'm trying to recreate the passing of multiple flashvars and flash parameters as is done by the js below:
<script type="text/javascript">
var s1 = new SWFObject("/scripts/shadowbox-build-3.0b/libraries/mediaplayer/player.swf","ply","580","326","9","#F3F3F3");
s1.addParam("allowfullscreen","true");
s1.addParam("allownetworking","all");
s1.addParam("allowscriptaccess","always");
s1.addParam("wmode", "opaque");
s1.addParam("flashvars","file=/videos/my.flv&skin=/scripts/shadowbox-build-3.0b/libraries/mediaplayer/overlay.swf&frontcolor=ffffff&lightcolor=F15922&controlbar=over&stretching=fill");
s1.write("container");
</script>I've tried
<script type="text/javascript">
Shadowbox.init({
players: ["html","img","flv"],
overlayColor: "#0C0012",
overlayOpacity: 0.6;
flashVars: file=/media/ATT.flv&skin=/scripts/shadowbox-build-3.0b/libraries/mediaplayer/overlay.swf&frontcolor=ffffff&lightcolor=F15922&controlbar=over&stretching=fill"
//Also tried this formatting for flashvars
flashVars: {file:"/media/ATT.flv", skin: "/scripts/shadowbox-build-3.0b/libraries/mediaplayer/overlay.swf", frontcolor: "ffffff", lightcolor: "F15922", controlbar: "over", stretching: "fill"}
});
//And this
flashVars: {file:"/media/ATT.flv"; skin: "/scripts/shadowbox-build-3.0b/libraries/mediaplayer/overlay.swf"; frontcolor: "ffffff"; lightcolor: "F15922"; controlbar: "over"; stretching: "fill"}
</script>No Luck with any of these attempts! They force the download of the FLV - not what I want.
I've tried working with the per link method -this is what I'd prefer to use:
//This basic method works but I'm not passing anything
<a href="/media/ATT.flv" rel="shadowbox; width=580; height=326">
//Tried this and passing parameters that should cancel the defaults
<a href="/media/ATT.flv" allowfullscreen="false" allowscriptaccess="always" wmode="transparent" type="application/x-shockwave-flash" rel="shadowbox; width=580; height=326">test_2</a>
Also, in combing thru shadowbox.js, I've found (around line 246 in source version)
flashVars: {}, // flash varsAgain, not formatting examples for multiple values.
Should I be hacking this file to pass these values?
Please, any clues would be much appreciated!