liberty
[ class tree: liberty ] [ index: liberty ] [ all elements ]

Procedural File: mime.video.php

Source Location: /liberty/plugins/mime.video.php



Page Details:



Tags:

author:  xing <xing@synapse.plus.com>
version:  $Header$
version:  $Revision$ created Thursday May 08, 2008
filesource:  Source Code for this file







PLUGIN_MIME_GUID_VIDEO [line 22]

PLUGIN_MIME_GUID_VIDEO = 'mimevideo'
This is the name of the plugin - max char length is 16

As a naming convention, the liberty mime handler definition should start with: PLUGIN_MIME_GUID_



[ Top ]




mime_video_add_process [line 180]

TRUE mime_video_add_process( $pStoreRow, array $pContentId)

This function will add an entry to the process queue for the cron job to take care of



Tags:

return:  on success, FALSE on failure - mErrors will contain reason for failure
access:  public


Parameters

array   $pContentId  
   $pStoreRow  
[ Top ]



mime_video_calculate_videosize [line 553]

void mime_video_calculate_videosize( &$pMetaData, $pParams, array $pFileHash, array $pCommonObject)

mime_video_calculate_videosize Calculate the display video size



Tags:

access:  public


Parameters

array   $pFileHash   File information including attachment_id
array   $pCommonObject   common object - calculations will be stored in $pCommonObject->mStoragePrefs
   &$pMetaData  
   $pParams  
[ Top ]



mime_video_converter [line 210]

TRUE mime_video_converter( &$pParamHash, [ $pOnlyGetParameters = FALSE], array $pParamHash)

Convert a stored video file to flashvideo



Tags:

return:  on success, FALSE on failure - mErrors will contain reason for failure
access:  public


Parameters

array   $pParamHash  
   &$pParamHash  
   $pOnlyGetParameters  
[ Top ]



mime_video_create_thumbnail [line 500]

TRUE mime_video_create_thumbnail( string $pFile, [numric $pOffset = 60])

This function will create a thumbnail for a given video



Tags:

return:  on success, FALSE on failure
access:  public


Parameters

string   $pFile   path to video file
numric   $pOffset   Offset in seconds to use to create thumbnail from
[ Top ]



mime_video_fix_streaming [line 588]

string mime_video_fix_streaming( array $pVideoFile)

mime_video_fix_streaming will make sure the MOOV atom is at the beginning of the MP4 file to enable streaming



Tags:

return:  shell result on success, FALSE on failure
access:  public


Parameters

array   $pVideoFile  
[ Top ]



mime_video_load [line 149]

TRUE mime_video_load( array $pFileHash, &$pPrefs, [array $pParams = NULL], array $pPrefs)

Load file data from the database



Tags:

return:  on success, FALSE on failure - ['errors'] will contain reason for failure
access:  public


Parameters

array   $pFileHash   Contains all file information
array   $pPrefs   Attachment preferences taken liberty_attachment_prefs
array   $pParams   Parameters for loading the plugin - e.g.: might contain values from the view page
   &$pPrefs  
[ Top ]



mime_video_preload [line 64]

TRUE mime_video_preload( )

mime_video_preload This function is loaded on every page load before anything happens and is used to load required scripts.



Tags:

return:  on success, FALSE on failure - mErrors will contain reason for failure
access:  public


[ Top ]



mime_video_store [line 76]

TRUE mime_video_store( &$pStoreRow, array $pStoreRow)

Store the data in the database



Tags:

return:  on success, FALSE on failure - $pStoreRow['errors'] will contain reason
access:  public


Parameters

array   $pStoreRow   File data needed to store details in the database - sanitised and generated in the verify function
   &$pStoreRow  
[ Top ]



mime_video_update [line 99]

TRUE mime_video_update( &$pStoreRow, [ $pParams = NULL], array $pStoreRow)

mime_video_update



Tags:

return:  on success, FALSE on failure - mErrors will contain reason for failure
access:  public


Parameters

array   $pStoreRow  
   &$pStoreRow  
   $pParams  
[ Top ]



Documentation generated on Wed, 29 Jul 2015 13:57:08 +0000 by phpDocumentor 1.5.0-lsces