Documentation

EmbedVideo
in package

No description yet.

Table of Contents

Constants

TYPE_VIMEO  : mixed = 2
TYPE_YOUTUBE  : mixed = 1

Methods

getThumbFilename()  : mixed
Get a thumbnail as a full absolute URL)
getVideoIdType()  : mixed
Parse the URL into a video-id and type
renderEmbed()  : mixed
Return HTML for embedding a video, based on the URL.
resizedThumb()  : mixed
Return the URL for our dynamic thumbnail resizer for a given video url

Constants

Methods

getThumbFilename()

Get a thumbnail as a full absolute URL)

public static getThumbFilename(mixed $url[, mixed $quality = 1 ]) : mixed
Parameters
$url : mixed
$quality : mixed = 1

Quality. Higher is better

getVideoIdType()

Parse the URL into a video-id and type

public static getVideoIdType(mixed $url) : mixed
Parameters
$url : mixed

renderEmbed()

Return HTML for embedding a video, based on the URL.

public static renderEmbed(string $url[, int $width = 400 ][, int $height = 300 ][, array<string|int, mixed> $options = array() ]) : mixed

Supports YouTube and Vimeo.

Options include: bool autoplay Begin playing the video straight away string title Title attribute

Parameters
$url : string
$width : int = 400
$height : int = 300
$options : array<string|int, mixed> = array()

resizedThumb()

Return the URL for our dynamic thumbnail resizer for a given video url

public static resizedThumb(mixed $url, mixed $sizespec) : mixed

Arguments are the same as File::resizeUrl Size spec only supports crop at this time (e.g. c200x150)

Parameters
$url : mixed
$sizespec : mixed
On this page

Search results