You are here

BynderMediaStreamWrapper.inc in Bynder 7

media_youtube/includes/BynderMediaStreamWrapper.inc

Create a Bynder Stream Wrapper class for the Media/Resource module.

File

includes/BynderMediaStreamWrapper.inc
View source
<?php

/**
 * @file
 * media_youtube/includes/BynderMediaStreamWrapper.inc
 *
 * Create a Bynder Stream Wrapper class for the Media/Resource module.
 */
class BynderMediaStreamWrapper extends MediaReadOnlyStreamWrapper {

  /**
   * Function getWebimagePath().
   * @return string
   *   The path to the image.
   */
  public function getWebimagePath($image_style, $filename) {
    return @bynder_embed_url($this->parameters['i'], $filename, $image_style);
  }

}

Classes

Namesort descending Description
BynderMediaStreamWrapper @file media_youtube/includes/BynderMediaStreamWrapper.inc