Player APIs
Register  ·  Sign In  ·  Help
Jump to Page:   1
  Reply   Reply  

Getting sharing config options in Player API
Options    Options  
BryanDev
Visitor
Posts: 5
Registered: 10-01-2009


BryanDev

Message 1 of 3

Viewed 97 times


Is there any way to get a players sharing config options through the player api? 

In the publishing console, under a player->video player a user can select under viral promotion tools email sharing, get link and blog this& get code.  I want to know the values of those checkboxes at runtime through the player api.  Seems like their must be a way to know but I cannot find anything.

 

 

Thanks

Kudos!
11-02-2009 03:19 PM
  Reply   Reply  

Re: Getting sharing config options in Player API
Options    Options  
Administrator BC-Todd
Administrator
Posts: 454
Registered: 12-21-2008


BC-Todd

Message 2 of 3

Viewed 94 times


These are true by default. You can use:

 

experienceModule.getConfiguredPropertiesForID("videoPlayer")

 

This will return an object (if anything is set, otherwise it will return null, so be sure to check) that has any number of properties. The ones you are interested in are:

 

allowLink

allowEmail

allowViralTitle

 

If any of these is "false", it means the default has been overridden. 


 

--todd

Kudos!
11-02-2009 03:41 PM
  Reply   Reply  

Re: Getting sharing config options in Player API
Options    Options  
BryanDev
Visitor
Posts: 5
Registered: 10-01-2009


BryanDev

Message 3 of 3

Viewed 90 times


Worked, thank you sir.
Kudos!
11-02-2009 04:07 PM
Jump to Page:   1