PHP Class VideoPress_AJAX, jetpack

Show file Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
init ( ) : VideoPress_AJAX Initialize the VideoPress_AJAX and get back a singleton instance.
wp_ajax_update_transcoding_status ( ) : void Ajax action to update the video transcoding status from the WPCOM API.
wp_ajax_videopress_get_upload_token ( ) : void Ajax method that is used by the VideoPress uploader to get a token to upload a file to the wpcom api.

Private Methods

Method Description
__construct ( ) Private VideoPress_AJAX constructor.

Method Details

init() public static method

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

wp_ajax_update_transcoding_status() public method

Ajax action to update the video transcoding status from the WPCOM API.

wp_ajax_videopress_get_upload_token() public method

Ajax method that is used by the VideoPress uploader to get a token to upload a file to the wpcom api.