PHP Class VideoPress_XMLRPC, jetpack

Since: 1.3
Show file Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
create_media_item ( array $media ) : array This is used by the WPCOM VideoPress uploader in order to create a media item with specific meta data about an uploaded file. After this, the transcoding session will update the meta information via the xmlrpc_update_videopress_info() method.
init ( ) : VideoPress_XMLRPC Initialize the VideoPress_XMLRPC and get back a singleton instance.
update_videopress_info ( array $vp_info ) : array | boolean Endpoint to allow the transcoding session to send updated information about the VideoPress video when it completes a stage of transcoding.
xmlrpc_methods ( array $methods ) : array Adds additional methods the WordPress xmlrpc API for handling VideoPress specific features

Private Methods

Method Description
__construct ( ) Private VideoPress_XMLRPC constructor.

Method Details

create_media_item() public method

Note: This method technically handles the creation of multiple media objects, though in practice this is never done.
public create_media_item ( array $media ) : array
$media array
return array

init() public static method

Initialize the VideoPress_XMLRPC and get back a singleton instance.
public static init ( ) : VideoPress_XMLRPC
return VideoPress_XMLRPC

update_videopress_info() public method

Endpoint to allow the transcoding session to send updated information about the VideoPress video when it completes a stage of transcoding.
public update_videopress_info ( array $vp_info ) : array | boolean
$vp_info array
return array | boolean

xmlrpc_methods() public method

Adds additional methods the WordPress xmlrpc API for handling VideoPress specific features
public xmlrpc_methods ( array $methods ) : array
$methods array
return array