문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top