PepperHelper Class
_libs\PepperHelper.js:1
The PepperHelper class is used to manage real time data that is not in the msdb such as blocks and related methods that have to do with player_data which is a vital part of each channel or scene block (i.e.: player)
Constructor
PepperHelper
()
Returns:
none fasterq appId 12100 playerId 6100
Item Index
Methods
_initComponents
()
The _initComponents initializes data constants for components and used to relieve member data such as mapping between component code and the type of resource it holds etc.
Returns:
none
getBlockBoilerplate
-
i_blockID
Get a component data structure and properties for a particular component id.
Parameters:
-
i_blockID
Number
Returns:
return the data structure of a specific component
getBlockCodeFromFileExt
-
i_fileExtension
Retrieve a component code from a file extension type (i.e.: flv > 3100).
Parameters:
-
i_fileExtension
String
Returns:
return component code
getBlocks
()
Object
Get the entire set data structure for all components.
Returns:
return all data structure
getCommonBackgroundXML
()
String
Get the common properties XML with all default values
Returns:
common xml
getCommonBorderXML
()
String
Get the common border XML with all default values
Returns:
common xml
getCommonDefaultXML
()
String
Get the common properties XML with all default values
Returns:
common xml
getCommonSceneDefaultXML
()
String
Get the common properties Scene XML with all default values
Returns:
common xml
getCommonSceneLayout
-
i_placement
Get the common layout which only applies when block is inside a scene
Parameters:
-
i_placement
String
Returns:
common xml
getFontAwesome
-
i_fontName
Get the font awesome path
Parameters:
-
i_fontName
String
Returns:
url path
getFontsAwesome
()
Object
Get the entire font awesome set
Returns:
data set
getIconFromMimeType
-
i_playerData
Translate a mimeType to a font-awesome icon of generic icons if does not exist
Parameters:
-
i_playerData
Number
Returns:
foundMimeIcon
playerDataTojson
-
i_playerData
Convert player data to json format
Parameters:
-
i_playerData
String
Returns:
jPlayerData
playerDataToxml
-
i_playerData
Convert player data to xml format
Parameters:
-
i_playerData
String
Returns:
xml data