Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I customize player implemented using SWFobject?

Tags:

swfobject

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?

like image 806
Ganesh Patil Avatar asked Dec 11 '13 11:12

Ganesh Patil


2 Answers

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

like image 156
Ketan Ghumatkar Avatar answered Nov 14 '22 12:11

Ketan Ghumatkar


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.

like image 1
pipwerks Avatar answered Nov 14 '22 12:11

pipwerks