Sharing plugin custom configured Flash plugins - Demo 11 / 14
Introduction
Here is the Sharing plugin in a non-default configuration where the the functionality has been tweaked to show how the configuration looks.
JavaScript coding
We have included one configuration option for each of the main features of the plugin. See here for a full listing of the available configuration options. Note that we have disabled Facebook you cannot see it's button in the dock.
$f("sharing2", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {
// define the URL to be shared, if not specified the plugin detects the
// URL of the page where the player is embedded
pageUrl: 'http://flowplayer.org/plugins/flash/sharing.html',
autoPlay: false
},
plugins: {
sharing: {
// load the sharing plugin
url: 'flowplayer.sharing-3.2.1.swf',
// Buttons' colors
buttons: {
// make the mouse-over state color red
overColor: '#ff0000'
},
// email specific options
email: {
// use a non-default subject line in emails
subject: 'A cool video in megavideos.com'
},
// embed code specific options
embed: {
// a fallback URL used with a video tag if Flash is not supported
fallbackUrls: [ "Extremists.mov" ]
},
// disable facebook sharing
facebook: false,
// don't open twitter in a popup browser window
twitter: {
popupOnClick: false
}
},
// Position and sizing for the button 'dock'
dock: {
// make it sit on the right side of the player
right: 15,
// make it vertical
horizontal: false,
// make the width appropriate for vertical orientation
width: '10%',
// disable autohiding
autoHide: false
}
}
});
Take a look at a standalone version of this demo. View its source code to get things going on your page.