UNA
|
Public Member Functions | |
getObjectName () | |
setCustomConf ($a) | |
setVideoSize ($sName, $iSize) | |
getSkins ($bFullInfo=false) | |
setSkin ($sSkin) | |
getCodeAudio ($iViewMode, $aParams, $bDynamicMode=false) | |
getCodeVideo ($iViewMode, $aParams, $bDynamicMode=false) | |
Static Public Member Functions | |
static | getObjectInstance ($sObject=false, $oTemplate=false) |
Static Public Member Functions inherited from iBxDolFactoryObject | |
static | getObjectInstance ($sObject) |
Protected Member Functions | |
__construct ($aObject) | |
_addJsCss ($bDynamicMode=false) | |
_replaceMarkers ($s, $a) | |
Protected Attributes | |
$_sObject | |
$_aObject | |
$_aConfCustom = array() | |
$_sSkin | |
$_aSkins | |
$_aSizes | |
Audio/Video player integration.
Site owner can choose which audio/video can be user on the site.
Default player is stored in 'sys_player_default' setting option.
Add record to 'sys_objects_player' table:
Display player
|
protected |
Add css/js files which are needed for player display and functionality.
|
protected |
Replace provided markers string.
$s | - string to replace markers in |
$a | - markers array |
BxDolPlayer::getCodeAudio | ( | $iViewMode, | |
$aParams, | |||
$bDynamicMode = false ) |
Get player HTML code
$iViewMode | - player view mode: BX_PLAYER_STANDARD, BX_PLAYER_MINI, BX_PLAYER_EMBED |
$aParams | - player params: mp3, ogg, attrs, styles - See usage example. |
$bDynamicMode | - is AJAX mode or not, the HTML with player is loaded dynamically. |
Reimplemented in BxBasePlayerHTML5, and BxPlyrPlayer.
BxDolPlayer::getCodeVideo | ( | $iViewMode, | |
$aParams, | |||
$bDynamicMode = false ) |
Get player HTML code
$iViewMode | - player view mode: BX_PLAYER_STANDARD, BX_PLAYER_MINI, BX_PLAYER_EMBED |
$aParams | - player params: poster, mp4, webm, attrs, styles - See usage example. |
$bDynamicMode | - is AJAX mode or not, the HTML with player is loaded dynamically. |
Reimplemented in BxBasePlayerHTML5, and BxPlyrPlayer.
|
static |
Get player object instance by object name
$sObject | object name |
BxDolPlayer::getObjectName | ( | ) |
Get object name
BxDolPlayer::getSkins | ( | $bFullInfo = false | ) |
Get a list of available skins.
BxDolPlayer::setCustomConf | ( | $a | ) |
Set custom player configuration options
BxDolPlayer::setVideoSize | ( | $sName, | |
$iSize ) |
Set size for default resolutions: 'sd' and 'hd'
|
protected |