Configuring multiple domains
You may have multiple domains mapped to the same web site. In a typical
scenario you may have .com and .net domains and they point to the same web
site. In these cases you need to have multiple product keys for Flowplayer
because single key allows the product to work on one domain.
JavaScript
You can supply multiple product keys with key configuration variable as
follows:
$f("player",
"http://releases.flowplayer.org/swf/flowplayer.commercial-3.2.11.swf", {
key: ['#$7162d2d730cf607ac6d', '#$797923938098779878E', '#$werw8dfaso080987798']
});
The value is a JavaScript array. The key variable was introduced in
Flowplayer 3.2.
Older Version
For older versions you have to do a little more JavaScript to make it happen.
// map domain names to product keys
var keys = {
'flowplayer.org' : '#$7162d2d730cf607ac6d',
'flowplayer.net' : '#$797923938098779878E',
'flowplayer.com' : '#$werw8dfaso080987798'
};
// use correct key in the installation
$f("player", "http://releases.flowplayer.org/swf/flowplayer.commercial-3.2.11.swf", {
key: keys[location.host] || ''
});