Reply
Brightcove Team
BC-Iceman
Posts: 101
Registered: ‎10-22-2009
0 Kudos
Accepted Solution

Change the default embed code used in the Sharing Menu using the Player API?

 How can you use the Player API to Change the default embed code used in the Sharing Menu? 

Brightcove Team
BC-Iceman
Posts: 101
Registered: ‎10-22-2009
0 Kudos

Re: Change the default embed code used in the Sharing Menu using the Player API?

I did some research and found the answer:

 

The share module is hard coded by default to use the Blog (flash object) embed code BUT you can rewrite this on the fly with the Player API...

setEmbedCode()method public function setEmbedCode(code:String):voidSets the embed code that will be shown in and copied from the player. 

This automatically disables blog options in the player since the embed code used for blogging will not be altered by this method. To enable the blog options, use enableBlogging(true). This will display the blog controls in the player menu, but the embed code used for blogs will be the default Brightcove embed code.Parameterscode:String — The embed code snippet that will be shown for the player.

Here is a working example you can look at:
http://distractedtype.com/test/GetCodeTA.html
Awesome!
IceMan out...