How do I customize player implemented using SWFobject?

174 views Asked by At

I am using SWFobject to implement player from slideshare.

Using embedSWF method to get player:

swfobject.embedSWF("http://static.slidesharecdn.com/swf/doc_player.swf", "player", "700", "392", "8", null, flashvars, params, atts);

its giving me player correctly but now I want to customize options from player i.e I don't want options like zoom in, zoom out,show on slideshare etc currently which are there on player.

can I able to customize it?

2

There are 2 answers

1
Ketan Ghumatkar On BEST ANSWER

SWF Object can be embeded in your code using following

swfobject.embedSWF(swfUrl, id, width, height, version, installSwfurl,
                    flashvars, params, attributes, callbackFn)

As you can see it has params as one of its parameter. Params can have menu, id, play, loop, quality, scale, etc.

To remove control menu keep menu as false. In your case, try below code

var params = {
  menu: "false"
};
swfobject.embedSWF("http://static.slidesharecdn.com/swf/doc_player.swf", "player", "700", "392", "8", null, flashvars, params, atts);

I am not 100% sure about this as I have not tried it.

For more reference you can look at

flash-object-embed-tag-attributes

swfobject/wiki/documentation

3
pipwerks On

This is not a SWFObject issue -- you're attempting to customize the look and feel of the SlideShare Player, which means you need to use their API. This is independent of SWFObject.

Please refer to the SlideShare Player API documentation.