\VideoUtility
Provides helper funtionality to handle and display videos from diffrent media platforms. Supported platforms are: -> Youtube -> Vimeo -> Metacafe -> Dailymotion -> Facebook
- Author: arillo
Synopsis
class VideoUtility
{
- // methods
- public static bool validate_video()
- public static string video_embed()
- public static bool is_youtube()
- public static array prepare_url()
Methods
public
- is_youtube() — Tests if a given url is a youtube video url.
- prepare_url() — Splits the given $media url into its logical parts.
- validate_video() — Checks if the given $media_url is a playable one.
- video_embed() — Generates the fiting embed code for the video according to its service.