You are here

VimeoStream.php in Video 8.2

Same filename and directory in other branches
  1. 8 src/StreamWrapper/VimeoStream.php

File

src/StreamWrapper/VimeoStream.php
View source
<?php

namespace Drupal\video\StreamWrapper;

use Drupal\Core\StreamWrapper\ReadOnlyStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;

/**
 * Defines a YouTube (vimeo://) stream wrapper class.
 */
class VimeoStream extends VideoRemoteStreamWrapper {
  protected static $base_url = 'http://www.vimeo.com';

  /**
   * {@inheritdoc}
   */
  public function getName() {
    return t('Vimeo');
  }

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return t('Video served by the Vimeo services.');
  }

  /**
   * {@inheritdoc}
   */
  public static function baseUrl() {
    return self::$base_url;
  }

}

Classes

Namesort descending Description
VimeoStream Defines a YouTube (vimeo://) stream wrapper class.