/** * @namespace Holds at least 1 config JSON object */ bbc.fmtj.page.empConfig = {}; /** * The base configuration applied to all * EMPs embedded on Journalism sites. * */ bbc.fmtj.page.empConfig.base = { /** * Related to the EMP such as size, * location etc. * */ player : { /** the height of the transport controls in the EMP */ toolbarPadding: 35, /** * The footer that appears when the EMP is opened in a * popout window. */ popoutFooterHeight : { /** height of the audio footer */ audio: 32, /** height of the video footer */ video: 77 }, /** @deprecated */ requiredVersion: 8 }, /** Supported audio player sizes. The size keys must match those output by CPS */ audio : { /** the 'small' size */ small : { width: 226, height: 71 }, /** the larger size */ full : { width: 512, height: 71 } }, /** * Supported video player sizes * @TODO: Are these used */ video : { /* should be named sizes? */ /* these may not be used...*/ standard : { width: 448, height: 252 }, popout : { width: 512, height: 323 } }, /** * Message text for users that do not have the * correct version of Flash to embed the EMP */ noFlashMessage : { heading : "Cannot play media.", bodyText : "You do not have the correct version of the flash player. ", linkText : "Download the correct version", linkUrl : "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" }, /** * The templates to be used with the noFlashMessage. */ noFlashTemplate : { audio: '

{heading}{bodyText} {linkText}

', video: '

{heading}{bodyText} {linkText}

' }, /** * The URL of the config XML file for configuring the EMP * @see http://www.bbc.co.uk/emp/ */ configUrl: "http://news.bbc.co.uk/player/emp/config/default.xml?2.17.12119_12207_20090826165626", /** The settings to be converted into keys such as config_settings_KEY = VALUE and passed to emp.set(key, value) @example settings: { language: "default" } => emp.set( "config_settings_language", "default" ); @see http://www.bbc.co.uk/emp/docs/guides/configurationSettings.html */ settings: { /** Language to use for EMP interface */ language: "default" }, /** Same behaviour as settings object above but used to configure any EMP plugins: @examples plugins: { fmtjLiveStats: { pageType: "eav7" } } => emp.set( "config_plugins_fmtjLivestats_pageType", eav7" ) @see http://www.bbc.co.uk/emp/docs/guides/plugins.html @TODO what do we do about livestats tracking for developer usage?? */ plugins: { /** Livestats plugin parameters are supplied by CPS */ fmtjLiveStats: {} }, // TODO: Add quova geoip logic here to stop appearing when inside the uk /** * Options for configuring adverts * when EMP is viewed internationally. */ ads: { /** * Configuration for companion ad format */ companion: { /** Dimensions of the companion */ size: "300x60", /** Type of companion */ type: "adi", /** * Prefix for the id of the companion banner if automatically created * by this embed code (for example if embedded by a developer) */ idPrefix: "bbccom_companion_", /** * Template for the companion banner dom id */ template: '
Advertisement
' /** * @name suppress {boolean} * When true and a developer is embedding then no companion will * be created. Make sure that you also stop the EMP showing a * pre-roll advert by calling: * emp.set( "config_settings_suppressItemKind", "advert" ); */ } } }; /* * Begin panorama config */ /* * Begin welsh config */ /* * Begin F1 config */ /* * Begin weather config */ /* * DemocracyLive and Childrens do not have a site_to_serve variable * So there is currently no way to configure them. */