class CVideoLibrary extends CVideos


Located at : UKNOWVA_ROOT/components/com_community/libraries/videos.php

Maintain classname compatibility with JomSocial 1.6 below

Properties

$errorMsg from CVideos
$debug from CVideos
$ffmpeg from CVideos
$flvtool2 from CVideos
$execFunction from CVideos

Methods

__construct()

Constructor

from CVideos
string
__toString()

Magic method to convert the object to a string gracefully.

from JObject
mixed
def(string $property, mixed $default = null)

Sets a default value if not alreay assigned

from JObject
mixed
get(string $property, mixed $default = null)

Returns a property of the object or the default value if the property is not set.

from JObject
array
getProperties(boolean $public = true)

Returns an associative array of object properties.

from JObject
string
getError(integer $i = null, boolean $toString = true)

Get the most recent error message.

from JObject
array
getErrors()

Return all errors, if any.

from JObject
mixed
set(string $property, mixed $value = null)

Modifies a property of the object, creating it if it does not already exist.

from JObject
boolean
setProperties(mixed $properties)

Set the object properties based on a named array/hash.

from JObject
void
setError(string $error)

Add an error message.

from JObject
string
toString() deprecated

No description

from JObject
runConvert()

Cron job will run this function to do all the pending video conversion

from CVideos
string
convertVideo($videoIn, $videoOut, $videoSize = '400x300', $deleteOriginal = false)

Convert a Video File into specified format according to the output file name If $videoOut is a path, a random file name will be generated

from CVideos
createVideoThumb($videoFile, $thumbFile, $videoFrame, $thumbSize = '128x96')

No description

from CVideos
createVideoThumbFromRemote($videoObj)

No description

from CVideos
injectMetadata($flv)

Inject Flash Video Metadata

from CVideos
getVideoInfo($videoFile, $cmdOut = '')

No description

from CVideos
hasFFmpegSupport()

No description

from CVideos
hasFLVTool2Support()

No description

from CVideos
getProvider($videoLink)

No description

from CVideos
getVideoFromProvider($videoLink)

No description

from CVideos
static 
getActivityContentHTML($act)

Return the content of acitivity stream

from CVideos
static 
getVideoReturnUrlFromRequest($videoType = 'default')

No description

from CVideos
videoSize($retunType = 'default', $displayType = 'display')

No description

from CVideos
thumbSize($param = 'thumbsize')

No description

from CVideos
getPath($userid = null, $folderType = 'user')

No description

from CVideos
_runCommand($command)

No description

from CVideos
addVideoActivity($video)

No description

from CVideos

Details

in CVideos at line 23
JObject __construct()

Constructor

Return Value

JObject

in JObject at line 56
string __toString()

Magic method to convert the object to a string gracefully.

Return Value

string The classname.

in JObject at line 70
mixed def(string $property, mixed $default = null)

Sets a default value if not alreay assigned

Parameters

string $property The name of the property.
mixed $default The default value.

Return Value

mixed

in JObject at line 88
mixed get(string $property, mixed $default = null)

Returns a property of the object or the default value if the property is not set.

Parameters

string $property The name of the property.
mixed $default The default value.

Return Value

mixed The value of the property.

See also

getProperties()

in JObject at line 107
array getProperties(boolean $public = true)

Returns an associative array of object properties.

Parameters

boolean $public If true, returns only the public properties.

Return Value

array

See also

get()

in JObject at line 133
string getError(integer $i = null, boolean $toString = true)

Get the most recent error message.

Parameters

integer $i Option error index.
boolean $toString Indicates if JError objects should return their error message.

Return Value

string Error message

in JObject at line 165
array getErrors()

Return all errors, if any.

Return Value

array Array of error messages or JErrors.

in JObject at line 180
mixed set(string $property, mixed $value = null)

Modifies a property of the object, creating it if it does not already exist.

Parameters

string $property The name of the property.
mixed $value The value of the property to set.

Return Value

mixed Previous value of the property.

in JObject at line 198
boolean setProperties(mixed $properties)

Set the object properties based on a named array/hash.

Parameters

mixed $properties Either an associative array or another object.

Return Value

boolean

See also

set()

in JObject at line 222
void setError(string $error)

Add an error message.

Parameters

string $error Error message.

Return Value

void

in JObject at line 235
string toString() deprecated

deprecated 12.1 Use magic method __toString()

Return Value

string

See also

__toString()

in CVideos at line 42
runConvert()

Cron job will run this function to do all the pending video conversion

in CVideos at line 268
string convertVideo($videoIn, $videoOut, $videoSize = '400x300', $deleteOriginal = false)

Convert a Video File into specified format according to the output file name If $videoOut is a path, a random file name will be generated

Parameters

$videoIn
$videoOut
$videoSize
$deleteOriginal

Return Value

string video file name or false if failed

in CVideos at line 329
createVideoThumb($videoFile, $thumbFile, $videoFrame, $thumbSize = '128x96')

Parameters

$videoFile
$thumbFile
$videoFrame
$thumbSize

in CVideos at line 372
createVideoThumbFromRemote($videoObj)

Parameters

$videoObj

in CVideos at line 421
injectMetadata($flv)

Inject Flash Video Metadata

Parameters

$flv

in CVideos at line 448
getVideoInfo($videoFile, $cmdOut = '')

Parameters

$videoFile
$cmdOut

in CVideos at line 536
hasFFmpegSupport()

in CVideos at line 548
hasFLVTool2Support()

in CVideos at line 557
getProvider($videoLink)

Parameters

$videoLink

in CVideos at line 618
getVideoFromProvider($videoLink)

Parameters

$videoLink

in CVideos at line 626
static getActivityContentHTML($act)

Return the content of acitivity stream

Parameters

$act

in CVideos at line 680
static getVideoReturnUrlFromRequest($videoType = 'default')

Parameters

$videoType

in CVideos at line 705
videoSize($retunType = 'default', $displayType = 'display')

Parameters

$retunType
$displayType

in CVideos at line 740
thumbSize($param = 'thumbsize')

Parameters

$param

in CVideos at line 759
getPath($userid = null, $folderType = 'user')

Parameters

$userid
$folderType

in CVideos at line 778
_runCommand($command)

Parameters

$command

in CVideos at line 833
addVideoActivity($video)

Parameters

$video