You are here

interface VideoFilterInterface in Video Filter 8

Defines an interface for ice cream flavor plugins.

Hierarchy

Expanded class hierarchy of VideoFilterInterface

All classes that implement VideoFilterInterface

File

src/VideoFilterInterface.php, line 10

Namespace

Drupal\video_filter
View source
interface VideoFilterInterface extends PluginInspectionInterface {

  /**
   * Return the name of the Video Filter codec.
   *
   * @return string
   *    The human-readable name of the codec.
   */
  public function getName();

  /**
   * Return codec sample URL.
   *
   * @return url
   *    The codec sample URL.
   */
  public function getExampleURL();

  /**
   * Return an array of regular expressions for the codec.
   *
   * @return array regexp
   *    Regular expression for the codec.
   */
  public function getRegexp();

  /**
   * Return video player ratio.
   *
   * @return string
   *    Aspect ratio of the video player.
   */
  public function getRatio();

  /**
   * Return video player control bar height.
   *
   * @return int
   *    Video player control bar height.
   */
  public function getControlBarHeight();

  /**
   * Return Video Filter coded usage instructions.
   *
   * @return string
   *    Video Filter coded usage instructions.
   */
  public function instructions();

  /**
   * Return video HTML5 video (iframe).
   *
   * @return url
   *    Video HTML5 video (iframe).
   */
  public function iframe($video);

  /**
   * Return Flash video (flv).
   *
   * @return url
   *    Flash video (flv).
   */
  public function flash($video);

  /**
   * Return HTML code of the video player.
   *
   * @return url
   *    HTML code of the video player.
   */
  public function html($video);

  /**
   * Return embed options (Form API elements).
   *
   * @return array (Drupal Form API)
   *    Embed options (Form API elements).
   */
  public function options();

  /**
   * Returns absolute URL to preview image.
   *
   * @return url
   *    Absolute URL to preview image.
   */
  public function preview($video);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
VideoFilterInterface::flash public function Return Flash video (flv). 1
VideoFilterInterface::getControlBarHeight public function Return video player control bar height. 1
VideoFilterInterface::getExampleURL public function Return codec sample URL. 1
VideoFilterInterface::getName public function Return the name of the Video Filter codec. 1
VideoFilterInterface::getRatio public function Return video player ratio. 1
VideoFilterInterface::getRegexp public function Return an array of regular expressions for the codec. 1
VideoFilterInterface::html public function Return HTML code of the video player. 1
VideoFilterInterface::iframe public function Return video HTML5 video (iframe). 1
VideoFilterInterface::instructions public function Return Video Filter coded usage instructions. 1
VideoFilterInterface::options public function Return embed options (Form API elements). 1
VideoFilterInterface::preview public function Returns absolute URL to preview image. 1