The end user must have Flash Player 9 or higher installed to view everything correctly.
To use our player API you need to access the player object. The example shown below using the SWFObject library can be used to obtain a reference to the player. In your HTML itself you can call the functions directly such as player.next().
This example uses the SWFObject library. You can use the code below to get a simple player on an HTML page.
Here, the div element specifies the element where the newly embedded player would be put. The swfobject.js library is needed for getting an embed player object easily.
Details for the parameters to be passed to the swfobject.embedSWF() function are as below.
swfobject.embedSWF(swfUrl, id, width, height, version, installSwfurl,
flashvars, params, attributes, callbackFn)
- swfUrl (String, required) specifies the URL of the SWF. This is http://static.slidesharecdn.com/swf/ssplayer2.swf for SlideShare
- id (String, required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content
- width (String, required) specifies the width of your SWF
- height (String, required) specifies the height of your SWF
- version (String, required) specifies the Flash player version your SWF is published for (format is: "major.minor.release" or "major")
- installSwfurl (String, optional) specifies the URL of your express install SWF and activates Adobe express install. Please note that express install will only fire once (the first time that it is invoked), that it is only supported by Flash Player 6.0.65 or higher on Win or Mac platforms, and that it requires a minimal SWF size of 310x137px.
- flashvars (Object, optional) specifies your flashvars with name:value pairs
- params (Object, optional) specifies your nested object element params with name:value pairs
- attributes (Object, optional) specifies your object's attributes with name:value pairs
You can have a look at a demo and get the sample code for the same.
API Call Details
In the Slide-show jump to the specified slide number
Move to the next slide
Move to the previous slide
Move to the first slide in the slide-show
Move to the last slide in the slide-show
Get the current slide number