PHP 클래스 VideoPress_Video, jetpack

부터: 1.3
파일 보기 프로젝트 열기: automattic/jetpack

공개 프로퍼티들

프로퍼티 타입 설명
$age_rating integer Recommended minimum age of the viewer.
$blog_id integer WordPress.com blog identifier
$calculated_height integer Video height calculated based on original video dimensions and the requested maxwidth
$calculated_width integer Video width calculated based on original video dimensions and the requested maxwidth
$captions array Closed captions if available for the given video. Associative array of ISO 639-2 language code and a WebVTT URI
$description string Video description
$duration integer Video duration in whole seconds
$expires integer Expiration of the video expressed in Unix time
$guid string VideoPress unique identifier
$language string Text and audio language as ISO 639-2 language code
$maxwidth integer Maximum desired width.
$players stdClass Video player information
$post_id integer Remote blog attachment identifier
$poster_frame_uri string Poster frame image URI for the given video guid and calculated dimensions.
$restricted_embed boolean Video author has restricted video embedding or sharing
$skin array Video player skinning preferences including background color and watermark
$text_direction string Directionality of title text. ltr or rtl
$title string Video title
$version
$videos stdClass Video files associated with the given guid for the calculated dimensions.

공개 메소드들

메소드 설명
__construct ( $guid, $maxwidth = 640 ) Setup the object.
calculate_expiration ( $expires_header ) : integer | boolean Convert an Expires HTTP header value into Unix time for use in WP Cache
hostname ( string $url ) : boolean | string Extract the site's host domain for statistics and comparison against an allowed site list in the case of restricted embeds.

비공개 메소드들

메소드 설명
get_data ( ) : stdClass | WP_Error Request data from WordPress.com for the given guid, maxwidth, and calculated blog hostname.

메소드 상세

__construct() 공개 메소드

Request video information from VideoPress servers and process the response.
부터: 1.3
public __construct ( $guid, $maxwidth = 640 )

calculate_expiration() 공개 정적인 메소드

Convert an Expires HTTP header value into Unix time for use in WP Cache
부터: 1.3
public static calculate_expiration ( $expires_header ) : integer | boolean
리턴 integer | boolean Unix time or false

hostname() 공개 정적인 메소드

Extract the site's host domain for statistics and comparison against an allowed site list in the case of restricted embeds.
부터: 1.2
public static hostname ( string $url ) : boolean | string
$url string absolute URL
리턴 boolean | string host component of the URL, or false if none found

프로퍼티 상세

$age_rating 공개적으로 프로퍼티

Recommended minimum age of the viewer.
부터: 1.3
public int $age_rating
리턴 integer

$blog_id 공개적으로 프로퍼티

WordPress.com blog identifier
부터: 1.5
public int $blog_id
리턴 integer

$calculated_height 공개적으로 프로퍼티

Video height calculated based on original video dimensions and the requested maxwidth
부터: 1.3
public int $calculated_height
리턴 integer

$calculated_width 공개적으로 프로퍼티

Video width calculated based on original video dimensions and the requested maxwidth
부터: 1.3
public int $calculated_width
리턴 integer

$captions 공개적으로 프로퍼티

Closed captions if available for the given video. Associative array of ISO 639-2 language code and a WebVTT URI
부터: 1.5
public array $captions
리턴 array

$description 공개적으로 프로퍼티

Video description
부터: 4.4
public string $description
리턴 string

$duration 공개적으로 프로퍼티

Video duration in whole seconds
부터: 1.3
public int $duration
리턴 integer

$expires 공개적으로 프로퍼티

Expiration of the video expressed in Unix time
부터: 1.3
public int $expires
리턴 integer

$guid 공개적으로 프로퍼티

VideoPress unique identifier
부터: 1.3
public string $guid
리턴 string

$language 공개적으로 프로퍼티

Text and audio language as ISO 639-2 language code
부터: 1.3
public string $language
리턴 string

$maxwidth 공개적으로 프로퍼티

Maximum desired width.
부터: 1.3
public int $maxwidth
리턴 integer

$players 공개적으로 프로퍼티

Video player information
부터: 1.3
public stdClass $players
리턴 stdClass

$post_id 공개적으로 프로퍼티

Remote blog attachment identifier
부터: 1.5
public int $post_id
리턴 integer

$poster_frame_uri 공개적으로 프로퍼티

Poster frame image URI for the given video guid and calculated dimensions.
부터: 1.3
public string $poster_frame_uri
리턴 string

$restricted_embed 공개적으로 프로퍼티

Video author has restricted video embedding or sharing
부터: 1.3
public bool $restricted_embed
리턴 boolean

$skin 공개적으로 프로퍼티

Video player skinning preferences including background color and watermark
부터: 1.5
public array $skin
리턴 array

$text_direction 공개적으로 프로퍼티

Directionality of title text. ltr or rtl
부터: 1.3
public string $text_direction
리턴 string

$title 공개적으로 프로퍼티

Video title
부터: 1.3
public string $title
리턴 string

$version 공개적으로 프로퍼티

public $version

$videos 공개적으로 프로퍼티

Video files associated with the given guid for the calculated dimensions.
부터: 1.3
public stdClass $videos
리턴 stdClass