SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class EmbedVideo

No description yet.

Functions

NameVisibilityDescription
getThumbFilenamepublic (static)Get a thumbnail as a full absolute URL)
getVideoIdTypepublic (static)Parse the URL into a video-id and type
renderEmbedpublic (static)Return HTML for embedding a video, based on the URL.
resizedThumbpublic (static)Return the URL for our dynamic thumbnail resizer for a given video url

public getThumbFilename

unknown EmbedVideo::getThumbFilename ( mixed $url [, Quality. $quality ] );

Get a thumbnail as a full absolute URL)

public getVideoIdType

unknown EmbedVideo::getVideoIdType ( mixed $url );

Parse the URL into a video-id and type

public renderEmbed

unknown EmbedVideo::renderEmbed ( string $url [, int $width [, int $height , array $options ]] );

Return HTML for embedding a video, based on the URL.
Supports YouTube and Vimeo.

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

public resizedThumb

unknown EmbedVideo::resizedThumb ( mixed $url , mixed $sizespec );

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

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