YoutubeStream.php in Video 8.2
File
src/StreamWrapper/YoutubeStream.php
View source
<?php
namespace Drupal\video\StreamWrapper;
use Drupal\Core\StreamWrapper\ReadOnlyStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
class YoutubeStream extends VideoRemoteStreamWrapper {
protected static $base_url = 'http://www.youtube.com/watch';
public function getName() {
return t('YouTube');
}
public function getDescription() {
return t('Video served by the YouTube services.');
}
public static function baseUrl() {
return self::$base_url;
}
}