5 * Contains Drupal\video\ProviderInterface.
8 namespace Drupal\video;
11 * Providers an interface for embed providers.
13 interface ProviderPluginInterface {
18 * @param string $settings
19 * The settings of the video player.
22 * A renderable array of the embed code.
24 public function renderEmbedCode($settings);
27 * Get the URL of the remote thumbnail.
29 * This is used to download the remote thumbnail and place it on the local
30 * file system so that it can be rendered with image styles. This is only
31 * called if no existing file is found for the thumbnail and should not be
32 * called unnecessarily, as it might query APIs for video thumbnail
36 * The URL to the remote thumbnail file.
38 public function getRemoteThumbnailUrl();